Skip to content

Commit

Permalink
PurchaseForm - Image->Pad() (#336)
Browse files Browse the repository at this point in the history
added missing use statement in cart_validation
  • Loading branch information
jsirish committed Oct 19, 2018
1 parent 8e5c7bf commit 29dff50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Form/FoxyStripePurchaseForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ protected function getProductFields(FieldList $fields)
HiddenField::create(ProductPage::getGeneratedValue(
$code,
'image',
$this->product->PreviewImage()->PaddedImage(80, 80)->absoluteURL
$this->product->PreviewImage()->Pad(80, 80)->absoluteURL
))
->setValue($this->product->PreviewImage()->PaddedImage(80, 80)->absoluteURL)
->setValue($this->product->PreviewImage()->Pad(80, 80)->absoluteURL)
);
}

Expand Down
3 changes: 3 additions & 0 deletions src/Model/foxycart.cart_validation.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

use Dynamic\FoxyStripe\Model\FoxyCart;

/**
* FoxyCart_Helper.
*
Expand Down

0 comments on commit 29dff50

Please sign in to comment.