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

altered carts OnSale mod for php 7+

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #31  
Old 08-20-2019, 01:23 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: altered carts OnSale mod for php 7+

I don't see the badge at all on 4.7.11 on reBOOT, Light Responsive, or Ideal Responsive templates.

Can you upload a image of it?

What XC version?

Template?

Thanks!
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote
  #32  
Old 08-21-2019, 01:37 PM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: altered carts OnSale mod for php 7+

I am using Ideal Responsive template xc version 4.7.11 GoldPlus. Here is an image if my cart as a wholesale member and the badge is still there.
Attached Images
File Type: png Screenshot (18) edit.png (149.8 KB, 6 views)
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #33  
Old 08-21-2019, 03:20 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: altered carts OnSale mod for php 7+

Thanks for that. It helped a lot!

The badge would not show up with the Special Offer Discount I created. I had to go to your site and see exactly what your Special Offer was. Once I set up the BOGO for a product on my dev site the same as you did the Special Offer Badge showed up.

In skin/ideal_responsive/customer/main/cart.tpl

Around Line # 48 - Comment out the following code.

Code:
{if $active_modules.Special_Offers ne "" and $product.have_offers} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl"} {/if}
This removed the badge from my dev site and hopefully works for you.
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote
  #34  
Old 08-22-2019, 10:38 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: altered carts OnSale mod for php 7+

could I do something like this so the badge shows up for NON members but is hidden when a customer has a membership or will that not work? (not sure if my additional code is correct)

Code:
{if $active_modules.Special_Offers ne "" and $product.have_offers and $_userinfo.membership eq ""} {include file="modules/Special_Offers/customer/product_offer_thumb.tpl"} {/if}
I does remove it completely when I comment out the line like you said but I thought it would be nice to show to customers it is meant for and hide it from everyone else.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #35  
Old 08-22-2019, 12:46 PM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: altered carts OnSale mod for php 7+

Try this
Code:
{if $active_modules.Special_Offers ne "" and $product.have_offers and $userinfo.membership ne "Wholesale"}
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote
  #36  
Old 08-23-2019, 11:04 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: altered carts OnSale mod for php 7+

ah, perfect, it works. I had used
Code:
$_userinfo.membership
instead of
Code:
$userinfo.membership
because in the order invoice template /ideal_responsive/mail/html/order_invoice.tpl they use that as the variable. I didn't think to check the variable for the cart page as I thought it would have been the same.
Thanks.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote

The following user thanks keystone for this useful post:
elmirage001 (08-23-2019)
  #37  
Old 08-23-2019, 11:34 AM
 
elmirage001 elmirage001 is offline
 

X-Wizard
  
Join Date: Apr 2007
Posts: 1,966
 

Default Re: altered carts OnSale mod for php 7+

Glad it's working for you!

Paul
__________________
X-Cart GoldPlus v4.7.12 | reBOOT (reDUX) Template v4.7.12.9 | Always The Best
Reply With Quote
  #38  
Old 09-09-2019, 12:20 AM
  zone1creative's Avatar 
zone1creative zone1creative is offline
 

eXpert
  
Join Date: Jan 2009
Location: Hove, UK
Posts: 341
 

Default Re: altered carts OnSale mod for php 7+

Can I just say the altered cart onsale module for xcart 4 is awesome. Even though it is no longer maintained it is essential for every new store I build.

This sort of functionality should be core in xcart. It makes the difference when comparing shopping carts.
__________________
Pinakin Patel
Zone1 Creative Ltd
http://www.zone1creative.co.uk/
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 04:09 AM.

   

 
X-Cart forums © 2001-2020