X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   Changing the display price on Product page (https://forum.x-cart.com/showthread.php?t=75708)

madhatter717 10-06-2017 02:52 PM

Changing the display price on Product page
 
hello all,

I am trying to modify the pricing display on our product pages that use the wholesale pricing module to create an "as low as" pricing structure.

I would like the price that is displayed on the product page to be the lowest entered price in the wholesale pricing module for that product.
example: price per unit is $3.16 for 1-149, but at 150+ the price is $2.05
I would like this price (the $1.50) to be the one that is displayed on the product page as the display price.

I am unsure of where in the wholesale module i should be looking (i believe it is the view folder) and where/what page I should be looking at to affect the change I desire.

could you please point me in the right direction

Thanks

qualiteam 10-15-2017 10:56 PM

Re: Changing the display price on Product page
 
The product page updates the price when you change options or select the quantity.
So, I'm not sure how you want it to be replaced with a static "from $xxx.xx".

Or do you want it to be another (new) line?

madhatter717 10-16-2017 08:37 AM

Re: Changing the display price on Product page
 
Thank you for your reply, Your right the product page does update the price when you change options or select a particular quantity. I wasn't really wanting to replace the dynamic price display with a static one. I am looking to change the behavior of the page to display the lowest wholesale price on products that have a WholesalePrice class. In effect overriding the function: getClearPrice.

I made a mistake in the example I gave where it says..."but at 150+ the price is $2.05 I would like this price (the $1.50) to be the one that is displayed on the product page as the display price"

It should have read.."I would like this price (the $2.05) to be the one that is displayed on the product page as the display price."

We have a catalog of products that have different pricing based upon how many you order, we use the wholesale price module to create these tiers of different pricing and how many you must order to get this price and the savings you will receive for ordering at this quantity, we want the lowest price point based on the wholesale price to be displayed on the product page instead of the base price of the product which is the current default behavior of x-cart. Our wholesale prices are available to ALL customers, so we don't have any memberships.

I hope this clarifies.

qualiteam 11-09-2017 09:51 PM

Re: Changing the display price on Product page
 
I'm sorry, but I still don't understand how it should work.

The page displays a price that depends on the options selected by the user.
When you open the page the "selected" quantity is "1".
You want to replace this price with the one that applies when the selected quantity is 150 or more.
So... you should either break the dynamic price logic, or pre-fill the quantity to be 150 somehow.

Perhaps, you are better to hire someone to code this for you.
Also, a step-by-step description of the desired behaviour would help the developer a lot.

pauldodman 11-10-2017 12:28 AM

Re: Changing the display price on Product page
 
So when a customer comes to the page, it shows the lowest price initially.
Then when they change the qty, the price updates accordingly?


All times are GMT -8. The time now is 05:29 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.