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)
-   -   Xcart Skin List (https://forum.x-cart.com/showthread.php?t=72806)

GlasPak 09-19-2015 02:33 PM

Xcart Skin List
 
Is there a way to find out all of the XCart skin lists?
I have a module to the invoices that modifies

* @ListChild (list="invoice.item.name", weight="20")
* @ListChild (list="cart.item.info", weight="20")

But it doesn't modify the email invoice and I can't figure out what list that would be part of.

qualiteam 09-23-2015 02:52 AM

Re: Xcart Skin List
 
There is no ready-made list, but you can check what view lists are used in your X-Cart 5 installation as follows:
Code:

SELECT DISTINCT list, zone FROM xc_view_lists ORDER BY zone;

GlasPak 09-23-2015 09:02 AM

Re: Xcart Skin List
 
Quote:

Originally Posted by qualiteam
There is no ready-made list, but you can check what view lists are used in your X-Cart 5 installation as follows:
Code:

SELECT DISTINCT list, zone FROM xc_view_lists ORDER BY zone;

If I am adding it to invoice.item.name shouldn't that include the email invoice?!?

qualiteam 09-23-2015 07:58 PM

Re: Xcart Skin List
 
It may be that your template file is located in the [xc5]/skins/default/en/ directory, whilst e-mails use a different directory for their templates: [xc5]/skins/mail/en/

Try to duplicate your template and copy it into the mail directory.

GlasPak 09-24-2015 05:01 AM

Re: Xcart Skin List
 
Quote:

Originally Posted by qualiteam
It may be that your template file is located in the [xc5]/skins/default/en/ directory, whilst e-mails use a different directory for their templates: [xc5]/skins/mail/en/

Try to duplicate your template and copy it into the mail directory.


I added a new module into the mail skin with the same code

Code:

{* vim: set ts=2 sw=2 sts=2 et: *}
{**
 * @ListChild (list="invoice.item.name", weight="20")
 *}
<li class="ppc-field">
  <span class="name">{t(#Pieces Per Case#)}</span>
  <span class="ppc-field-value">{item.product.getPPCField()}</span>
</li>


and redeployed the store... I verified in skins/mail/en/order/invoice/parts/item.name.tpl that i am referencing the right list
Code:

<list name="invoice.item.name" item="{item}" />

but it did not show the field in the email.

qualiteam 09-24-2015 10:46 PM

Re: Xcart Skin List
 
I tested the following template and it did appear in e-mail invoices:
Code:

{* vim: set ts=2 sw=2 sts=2 et: *}

{**
 * @ListChild (list="invoice.item.name", weight="20")
 *}
<li style="list-style: none;line-height: 1.6em;color: #5a5a5a;">{t(#TEST LINE#)} Some text goes there</li>


Please check if you put the template in the right directory. You may also try to re-deploy the site once again.

GlasPak 09-25-2015 05:15 AM

Re: Xcart Skin List
 
Quote:

Originally Posted by qualiteam
I tested the following template and it did appear in e-mail invoices:
Code:

{* vim: set ts=2 sw=2 sts=2 et: *}

{**
 * @ListChild (list="invoice.item.name", weight="20")
 *}
<li style="list-style: none;line-height: 1.6em;color: #5a5a5a;">{t(#TEST LINE#)} Some text goes there</li>


Please check if you put the template in the right directory. You may also try to re-deploy the site once again.


Directory structure got me!!!

I had put it in
skins/mail/en/modules/GlasPak

instead of

skins/mail/en/modules/EBLIEB/GlasPak


EDIT:
Why every time that I redeploy the store I get a missing blank.png in /var/resources/js ?!?

qualiteam 09-26-2015 03:27 AM

Re: Xcart Skin List
 
Quote:

Originally Posted by GlasPak
Why every time that I redeploy the store I get a missing blank.png in /var/resources/js ?!?


Where do you see it? Is it in var/log/ or in the browser's console?
Please can you share the full error text?


All times are GMT -8. The time now is 07:31 AM.

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