Jump to content
Sign in to follow this  
binderben

Quantity price breaks per product

Recommended Posts

Hi,

 

I tried to install the contribution: 'quantity price breaks per product' on a cart with only a single other contribution: 'option types v2'. The problem is in the manual installation instructions it asks me to:

 

In application_top.php, Find (around line 361 [around line 368 in edited file]):

$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);

 

and replace with

//BOF qpbpp

//$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);

$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id'])) + $HTTP_POST_VARS['cart_quantity'], $HTTP_POST_VARS['id']);

//EOF qpbpp

 

Because of the optiontypesV2 this line has been changed to something else. I have been trying for hours to integrate the changes to no avail.

 

If someone could look at what I am doing wrong that would be great. Here is my application_top.php page: http://pastebin.com/m25fefa54

Share this post


Link to post
Share on other sites

Searching goes over posting.

 

And yes, somebody had the same problem in the past.

 

And yes, he posted his question in the contribution support forum

 

And finally yes, he got an answer, find it here ---> merge QPBPP and option types v2 in application_top.php

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×