| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
QuickViews Problem | ||||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
QuickViews Problem
I am not sure why but our "quickviews" for the products are just displaying a URL for "more details" that takes you to the actual page. I need to put in here some text (Pieces per Case) so that it shows up in quickviews.
http://glaspak.com/bormioli-fido-jars For example the Fido 200 ml Terrine Hermetic Jar. Edit: I am trying to modify quicklook to add a new class <li class="ppc-field"> <span class="name">{t(#Pieces Per Case#)}</span> <span class="ppc-field-value">{item.product.getPPCField()}</span> </li> But I can't figure out where any reference to quicklook are (all Quicklook gives is a link that says "More details")
__________________
Business License https://glaspak.com GoDaddy VPS - Apache with WHM 2GB ECC DDR3 1600MHz 2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz 15 MB proc cache 60 GB 10k RPM hdd PHP 7.0.15 MariaDB 10.1.21 with InnoDB engine |
|||||||||
#2
|
|||||||||
|
|||||||||
Re: QuickViews Problem
Quickviews don't show product descriptions in X-Cart 5 out of the box. The popup block is too small for the description to fit in there.
However, with a small custom module you can make the description appear in Quicklooks too. To do this you should add the skins/default/en/product/details/parts/common.product-title.tpl template into the "product.details.quicklook.info" list with the height parameter set to 18 (out of the box the template goes into the "product.details.page.info" list only).
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: QuickViews Problem
I followed this http://kb.x-cart.com/display/XDD/Adding+new+property+to+a+product to create a new field in which I have item.ppc-field.tpl for the invoice
Can I just add that instead? Edit: I edited my item.ppc-field.tpl Quote:
And all it did was break quicklook.
__________________
Business License https://glaspak.com GoDaddy VPS - Apache with WHM 2GB ECC DDR3 1600MHz 2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz 15 MB proc cache 60 GB 10k RPM hdd PHP 7.0.15 MariaDB 10.1.21 with InnoDB engine |
|||||||||
#4
|
|||||||||
|
|||||||||
Re: QuickViews Problem
It should be just "{product.getPPCField()}" for the "product.details.quicklook.info" list, not "{item.product.getPPCField()}".
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
#5
|
|||||||||
|
|||||||||
Re: QuickViews Problem
Quote:
What if the value is null? Got it to work but any attempt at trying to have it ignored if the value of product.getPPCField() is zero length failed miserably!
__________________
Business License https://glaspak.com GoDaddy VPS - Apache with WHM 2GB ECC DDR3 1600MHz 2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz 15 MB proc cache 60 GB 10k RPM hdd PHP 7.0.15 MariaDB 10.1.21 with InnoDB engine |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: QuickViews Problem
Try this one:
PHP Code:
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#7
|
|||||||||
|
|||||||||
Re: QuickViews Problem
Quote:
Trying to understand this before I implement... What does IF="product.getPPCField()" do? I can't find documentation on it. Also I am guessing I can change li to div (don't want it in a list).
__________________
Business License https://glaspak.com GoDaddy VPS - Apache with WHM 2GB ECC DDR3 1600MHz 2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz 15 MB proc cache 60 GB 10k RPM hdd PHP 7.0.15 MariaDB 10.1.21 with InnoDB engine |
|||||||||
#8
|
|||||||||
|
|||||||||
Re: QuickViews Problem
This means the tag should be displayed only if the function returns TRUE or a data that PHP would cast into TRUE. NULL turns into FALSE, so the LI tag won't be rendered for products with getPPCField() being NULL.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#9
|
|||||||||
|
|||||||||
Re: QuickViews Problem
Quote:
It didn't work... Is it possible it is a 0 length instead of null? Is there a way for it to assume null and zero length = False? This is what I used PHP Code:
__________________
Business License https://glaspak.com GoDaddy VPS - Apache with WHM 2GB ECC DDR3 1600MHz 2x Intel E5-2630L v2 Hex Core 2.4/2.8ghz 15 MB proc cache 60 GB 10k RPM hdd PHP 7.0.15 MariaDB 10.1.21 with InnoDB engine |
|||||||||
#10
|
|||||||||
|
|||||||||
Re: QuickViews Problem
What is in product.getPPCField() when it doesn't work?
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
|||
X-Cart forums © 2001-2020
|