Post by 3gmusicandsound » Sat Aug 24, 2013 7:31 am

This is a small mod I applied to our site with ver 1.5.6
I have no idea why they didn't make it display the price in the cart, subtotals, and checkout but here goes.

If anyone sees any problems or can make it better please feel free. :)

<modification>
<id><![CDATA[Recurring Profile Cart Fix]]></id>
<version><![CDATA[1]]></version>
<vqmver><![CDATA[2.4.1]]></vqmver>
<author><![CDATA[Andrew Tite - andrewtite@me.com]]></author>
<file name="catalog/controller/checkout/confirm.php">
<operation info="Add Recurring Amount to Checkout Item Price">
<search position="replace"><![CDATA[$product['price']]]></search>
<add><![CDATA[($product['price']+$product['recurring_price'])]]></add>
</operation>
</file>
<file name="catalog/controller/checkout/cart.php">
<operation info="Add Recurring Amount to Checkout Item Price">
<search position="replace"><![CDATA[$product['price']]]></search>
<add><![CDATA[($product['price']+$product['recurring_price'])]]></add>
</operation>
</file>
</modification>


Posts

Joined
Sat Aug 24, 2013 7:28 am

Post by abcisme » Tue Nov 26, 2013 5:10 am

This is exactly what I was looking for, BUT it doesn't seem to work in the subtotal for me..? It does add it to the price in the cart, but the subtotal stays at zero. Any idea?

Newbie

Posts

Joined
Tue Nov 26, 2013 5:07 am

Post by mgraphix79 » Mon Jan 13, 2014 8:49 pm

I face the same problem myself with recurring profiles. I added the mod indicated above, now the shopping cart displays the correct price for each profile set, but the sub-total doesn't change, so the user cannot pay for the correct amount. Did anyone solve this problem so far?

Thanks.

Newbie

Posts

Joined
Mon Jan 13, 2014 8:46 pm

Post by gpf » Tue Jan 21, 2014 12:14 am

Also need help with this, anyone?

gpf
Newbie

Posts

Joined
Tue Oct 29, 2013 12:00 am

Post by nipuntyagi » Thu Jan 23, 2014 2:26 pm

Hi I have found the solution of it, For add the recurring profile price in the cart you should have to change some code in the core files of the opencart instead of controller of checkout & cart. Here is the file path & code;

Got to Opencart->System->library->cart.php
On line number 273, you have these lines

Code: Select all

'price'  => ($price + $option_price),
'total'  => ($price + $option_price) * $quantity,
You should have to change these lines to

Code: Select all

'price'   => ($price + $recurring_price + $option_price),
'total'   => ($price + $recurring_price + $option_price) * $quantity,
Now everything will work fine, Have FUN O0

Newbie

Posts

Joined
Thu Jan 23, 2014 2:19 pm
Who is online

Users browsing this forum: No registered users and 5 guests