Skip to content

Commit

Permalink
Add support for shipping dimensions (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeday authored Dec 23, 2022
1 parent 1fe34c2 commit b0bcb72
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions src/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,51 @@ public function setShippingWeight($str)
return $this;
}

/**
* Add shipping length
*
* @see https://support.google.com/merchants/answer/6324498?hl=en
*
* @param string $str
*
* @return $this
*/
public function setShippingLength($str)
{
$this->setAttribute('shipping_length', $str, false);
return $this;
}

/**
* Add shipping width
*
* @see https://support.google.com/merchants/answer/6324498?hl=en
*
* @param string $str
*
* @return $this
*/
public function setShippingWidth($str)
{
$this->setAttribute('shipping_width', $str, false);
return $this;
}

/**
* Add shipping height
*
* @see https://support.google.com/merchants/answer/6324498?hl=en
*
* @param string $str
*
* @return $this
*/
public function setShippingHeight($str)
{
$this->setAttribute('shipping_height', $str, false);
return $this;
}

/**
* Set a custom label
*
Expand Down

0 comments on commit b0bcb72

Please sign in to comment.