Skip to content

Commit

Permalink
Update _pitchprint.xml
Browse files Browse the repository at this point in the history
clear session upon add to cart
  • Loading branch information
pitchprint committed Jan 22, 2019
1 parent 2f7f905 commit c9943d3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 3.0/vqmod/xml/_pitchprint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,17 @@
'upload' => $product['upload'],
]]></add>
</operation>
<operation>
<search position="after"><![CDATA[unset($this->session->data['payment_methods']);]]></search>
<add><![CDATA[
// PitchPrint clear session after add to cart
if (isset($this->session->data['pp_projects'])) {
if (isset($this->session->data['pp_projects'][$product_id])) {
unset($this->session->data['pp_projects'][$product_id]);
}
}
]]></add>
</operation>
</file>
<file error="log" name="catalog/controller/checkout/confirm.php">
<operation>
Expand Down

0 comments on commit c9943d3

Please sign in to comment.