Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Quantity Price Breaks Per Product for MVS v1. (Multi Vender Shipping)


mocall

Recommended Posts

I plan to use Quantity Price Breaks Per Product under MVS v1. (Multi Vender Shipping).

 

I replaced some script and uploaded new file for using Quantity Price Breaks Per Product.

But does not work.

 

maybe the problem is

 

replacing shopping cart.php line around 300

 

$products_query = tep_db_query("select products_id,

products_price,

products_tax_class_id,

products_weight,

vendors_id

from " . TABLE_PRODUCTS . "

where products_id = '" . (int)$products_id . "'"

);

$products_price = $product['products_price'];

 

replace

 

if ($product = $pf->loadProduct($products_id, $languages_id)) {

$products_price = $pf->computePrice($qty);

 

 

and new file

 

catalog/includes/classes/PriceFormatter.php

catalog/includes/classes/PriceFormatterStore.php

admin/includes/classes/PriceFormatter.php

 

maybe need to change script in these files for MVS

 

if you know the solution, please tell me.

Link to comment
Share on other sites

I plan to use Quantity Price Breaks Per Product under MVS v1. (Multi Vender Shipping).

 

I replaced some script and uploaded new file for using Quantity Price Breaks Per Product.

But does not work.

Probably it will work again with a few small changes.

In catalog/includes/classes/PriceFormatterStore.php add vendors_id to the $sql in function PriceFormatterStore.

In the function addPriceBreakData ($products_id, $productinfo) add vendors_id like this:

...
			'products_name' => $productinfo['products_name'],
			'vendors_id' => $productinfo['vendors_id'],
etcetera....

Similarly add vendors_id to the $sql in the function PriceFormatter in catalog/includes/classes/PriceFormatter.

 

That will probably do it. No need to add it to the admin section in the class PriceFormatter.

Link to comment
Share on other sites

Probably it will work again with a few small changes.

In catalog/includes/classes/PriceFormatterStore.php add vendors_id to the $sql in function PriceFormatterStore.

In the function addPriceBreakData ($products_id, $productinfo) add vendors_id like this:

...
			'products_name' => $productinfo['products_name'],
			'vendors_id' => $productinfo['vendors_id'],
etcetera....

Similarly add vendors_id to the $sql in the function PriceFormatter in catalog/includes/classes/PriceFormatter.

 

That will probably do it. No need to add it to the admin section in the class PriceFormatter.

 

thank you so much. I will try to change soon. and I will tell you after done it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...