Skip to content

Commit b0bcb72

Browse files
authored
Add support for shipping dimensions (#29)
1 parent 1fe34c2 commit b0bcb72

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

src/Product.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,51 @@ public function setShippingWeight($str)
367367
return $this;
368368
}
369369

370+
/**
371+
* Add shipping length
372+
*
373+
* @see https://support.google.com/merchants/answer/6324498?hl=en
374+
*
375+
* @param string $str
376+
*
377+
* @return $this
378+
*/
379+
public function setShippingLength($str)
380+
{
381+
$this->setAttribute('shipping_length', $str, false);
382+
return $this;
383+
}
384+
385+
/**
386+
* Add shipping width
387+
*
388+
* @see https://support.google.com/merchants/answer/6324498?hl=en
389+
*
390+
* @param string $str
391+
*
392+
* @return $this
393+
*/
394+
public function setShippingWidth($str)
395+
{
396+
$this->setAttribute('shipping_width', $str, false);
397+
return $this;
398+
}
399+
400+
/**
401+
* Add shipping height
402+
*
403+
* @see https://support.google.com/merchants/answer/6324498?hl=en
404+
*
405+
* @param string $str
406+
*
407+
* @return $this
408+
*/
409+
public function setShippingHeight($str)
410+
{
411+
$this->setAttribute('shipping_height', $str, false);
412+
return $this;
413+
}
414+
370415
/**
371416
* Set a custom label
372417
*

0 commit comments

Comments
 (0)