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

Create checkbox property on product page

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 04-20-2015, 10:46 AM
 
bob@n-flatables bob@n-flatables is offline
 

Member
  
Join Date: Nov 2012
Posts: 26
 

Default Create checkbox property on product page

I followed the tutorial on creating a new property: http://kb.x-cart.com/display/XDD/Adding+new+property+to+a+product

I would like to do this, but as a checkbox. When I've tried, I can create the field in the Admin area but I cannot pull the data onto the product page. How do I do this? Is it more complicated than doing a simple text input field?
__________________
X-cart v 5.2
Reply With Quote
  #2  
Old 04-20-2015, 12:06 PM
 
bob@n-flatables bob@n-flatables is offline
 

Member
  
Join Date: Nov 2012
Posts: 26
 

Default Re: Create checkbox property on product page

It appears the data is not saving when I check the checkbox.



I successfully followed the guide on creating custom Product properties, which resulted in a string field. This works perfect. I had assumed creating a checkbox field would be the same method, but I'm not having success. The checkbox appears in the Product admin page, but I cannot pull the data to the customer Product page, nor will the checkbox remain checked after refreshing the page.

I've decorated the XLite/Model and XLite/View/Model pages just like the guide; is there anything else I'm supposed to be doing?
__________________
X-cart v 5.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:27 AM.

   

 
X-Cart forums © 2001-2020