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

Determine if the product is shippable or not

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 08-17-2015, 07:53 AM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Determine if the product is shippable or not

In x-cart 5, How canI detemermine in the product page if the item is shippable, for example I want to put an estimated delivery date, but I don't want it to appear on products which do not ship.
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #2  
Old 08-17-2015, 09:01 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Determine if the product is shippable or not

Let's say you have an instance of \XLite\Model\Product class in $product variable.

You can check if it is a shippable item with this code: $product->getShippable()
__________________
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

The following user thanks qualiteam for this useful post:
RichieRich (08-17-2015)
  #3  
Old 08-17-2015, 01:57 PM
  RichieRich's Avatar 
RichieRich RichieRich is offline
 

X-Adept
  
Join Date: Sep 2004
Location: London, England
Posts: 750
 

Default Re: Determine if the product is shippable or not

Will you be able to post the code for the module to only show text on the product page if the item is shippable please?
__________________
Richard


Ultimate 5.4 testing
Reply With Quote
  #4  
Old 08-18-2015, 11:44 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

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

Default Re: Determine if the product is shippable or not

Where should the text appear? Also, what is the 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)


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

   

 
X-Cart forums © 2001-2020