Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Xcart Skin List

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 09-19-2015, 02:33 PM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default 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.
__________________
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
Reply With Quote
  #2  
Old 09-23-2015, 02:52 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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;
__________________
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
Reply With Quote
  #3  
Old 09-23-2015, 09:02 AM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default 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?!?
__________________
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
Reply With Quote
  #4  
Old 09-23-2015, 07:58 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
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
Reply With Quote
  #5  
Old 09-24-2015, 05:01 AM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default 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.
__________________
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
Reply With Quote
  #6  
Old 09-24-2015, 10:46 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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.
__________________
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
Reply With Quote
  #7  
Old 09-25-2015, 05:15 AM
  GlasPak's Avatar 
GlasPak GlasPak is offline
 

eXpert
  
Join Date: May 2015
Posts: 241
 

Default 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 ?!?
__________________
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
Reply With Quote
  #8  
Old 09-26-2015, 03:27 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default 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?
__________________
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
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 06:14 PM.

   

 
X-Cart forums © 2001-2020