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)
-   -   Wholesale pricing on category listing (https://forum.x-cart.com/showthread.php?t=70258)

tls 10-15-2014 02:39 PM

Wholesale pricing on category listing
 
I would like the wholesale pricing to show up on the category listing page.

In this thread http://forum.x-cart.com/showthread.php?t=63549 they talk about doing this in x-cart 4

Is the structure for this similar between 4 and 5 so that I can use that thread as a starting place? Or is there some additional abstraction that I need to wrap my head around when working with x-cart 5?

It appears that the products.php file needs to do the query to pull the data from the database and then the products_list.tpl shows the data by including the product_prices.tpl in the middle of it somewhere.

qualiteam 10-15-2014 11:38 PM

Re: Wholesale pricing on category listing
 
Coding for X-Cart 5 is completely different than for X-Cart 4.

Please use this online documentation:
http://kb.x-cart.com/

tony_sologubov 10-17-2014 06:18 AM

Re: Wholesale pricing on category listing
 
Hi tls!

This is an interesting task and I will be glad to help you with it. As a first step, create your own module according to the guide here:
http://kb.x-cart.com/display/XDD/Step+1+-+creating+simplest+module

Then, I will explain what to do next.

tls 10-17-2014 08:44 AM

Re: Wholesale pricing on category listing
 
I looked over those directions and it's more than I can get done before I leave town for a week. So I will have to re-visit this after I return.

At first I was intimidated about the learning curve of all this custom module stuff. Then I realized that I could add and remove all my changes with a single click to not just my store but both my production and test environments as well as send the module to others for testing and enhancements.

So although I don't have time right now, I am looking forward to seeing how well this works. Much of the code I am seeing is above my head and I am struggling to read it. I wrote a couple hundred lines of PHP code about 6 years back.

tony_sologubov 10-20-2014 06:03 AM

Re: Wholesale pricing on category listing
 
Hi Brian!

I know, it is kind of scary to start writing for X-Cart 5, but I will guide you through the first steps and you will see that it is not _that_ scary.

Just bump a thread, once you get back to this task and I will help you with it.

Tony.


All times are GMT -8. The time now is 06:10 AM.

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