| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Product Grid Layout | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
Product Grid Layout
http://www.2techchicks.com/xc514/
How do edit the product grid? used to be products_t.tpl. I'd like to add our price before the price, and then the market price after the price.
__________________
xcart 5.1.2 |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: Product Grid Layout
bump....
__________________
xcart 5.1.2 |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Product Grid Layout
Sorry, did not quite get what you are trying to achieve? Once I understand what change you need to apply, I will be able to suggest how to do that.
Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker! Know how to make X-Cart better? Suggest an idea! |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: Product Grid Layout
I would like to add the words our price for before the price, then I would like to add the words market price and the market price.
like this: Our Price: $9.99 market price: $19.99
__________________
xcart 5.1.2 |
|||||||||
|
#5
|
|||||||||
|
|||||||||
Re: Product Grid Layout
Tony, I think I got this one.
I made a 15 minute tutorial walking you through exactly what to do to add the market price: http://youtu.be/LxpUCoYU_nU You can see all my X-cart 5 tuts here: http://forum.x-cart.com/showthread.php?t=64668
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Product Grid Layout
I just realized while reviewing my own tutorial, that my code does not take into account that the product may not have a market price.
I also want to detail the changes made thus far: We enabled Market price module We enabled Custom skin module. Then we created skins/custom_skin/default/en/items_list/product/parts/common.product-price.tpl with the following content: Code:
If we change this code by wrapping an if statement around the market price: Code:
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
#7
|
|||||||||
|
|||||||||
Re: Product Grid Layout
thank you
__________________
xcart 5.1.2 |
|||||||||
#9
|
|||||||||
|
|||||||||
Re: Product Grid Layout
ok a few issues.
contents of my file Code:
http://www.2techchicks.com/xc514/ stuff showing twice. If I remove this * @ListChild (list="itemsList.product.grid.customer.info", weight="30") the issue goe away. Do i remove all the listchild calls? Market price is not showing. If I remove the if statement it shows but on all products. our price and market price show in left list. Only want this in the grid portion in the middle. thanks. ash
__________________
xcart 5.1.2 |
|||||||||
#10
|
|||||||||
|
|||||||||
Re: Product Grid Layout
Where is the file located? How is it being called? I believe it is essential for this solution of mine, that you being using your own custom skin or the custom skin module. And the path to the file is important too. My file is located at skins/custom_skin/default/en/items_list/product/parts/common.product-price.tpl what is yours?
If you are working with your own custom skin, perhaps it is not setup right. Or maybe the difference is because I am running 515 and I am guessing you are running 514 based on the directory name. But I doubt this is it. Test the solution in custom skin module on a 515 installation. Are you using a "skin" module or are you using a module and decorating a class with it. How does the file get included? If it is in custom skin, then it should be overwriting the original skin file and not displaying twice. I don't know why if:product.getMarketPrice() statement is not working.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|