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

X-Cart popup messages

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #31  
Old 03-28-2012, 09:43 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: X-Cart popup messages

Quote:
7. Open "modules/Discount_Coupons/discount_coupons.php" and FIND

$cart = func_array_merge($cart, func_calculate($cart, $products, $logged_userid, $current_area, 0));

In 4.4.3 the above doesn't exist - look for this line

list($cart, $products) = func_generate_products_n_recalculate_cart();

If it's not working on product details page you have something not loading there, check the install again
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #32  
Old 03-28-2012, 09:52 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: X-Cart popup messages

Thanks.

I've been through the install twice, but I can't find anything I overlooked. Any guesses what code might be related to product.php?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #33  
Old 03-28-2012, 10:08 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: X-Cart popup messages

I've got a little more info. I can see by the source of the page that the popups are loading on the product pages and display: none is properly set, so there must be something disconnected between the add to cart button and the module... does XC popups rely on any specific tag IDs/classes/functions relating to the add to cart button by any chance?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #34  
Old 03-28-2012, 10:28 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: X-Cart popup messages

If you have the install correct and on product details page when you click on add to cart it turns into "added" then back to "add to cart" it shoudl work
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
tqualizerman (03-28-2012)
  #35  
Old 03-28-2012, 10:44 AM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: X-Cart popup messages

Excellent - thank you. I tracked it down to this line from product.tpl, in my template:

<div>{include file="customer/main/product_details.tpl"}</div>

Compared to the unmodified version of product.tpl:

<div class="details">{include file="customer/main/product_details.tpl"}</div>

Yikes. Putting that class tag back in there fixed it.

Thanks for your very quick help!
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #36  
Old 03-28-2012, 11:49 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: X-Cart popup messages

No problem, glad you fixed it
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #37  
Old 03-28-2012, 01:09 PM
  tqualizerman's Avatar 
tqualizerman tqualizerman is offline
 

X-Adept
  
Join Date: Jun 2008
Posts: 392
 

Default Re: X-Cart popup messages

Can this be made to work with the contact us and register functions?
__________________
- www.nerdseven.com - Gadgets & Gizmos from Out of This World
- Sound Sensitive T-Shirts That Flash to the Beat of Music (http://www.tqualizer.com)


X-Cart Version 4.1.10
Reply With Quote
  #38  
Old 03-28-2012, 01:37 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: X-Cart popup messages

In relation to what?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #39  
Old 03-31-2012, 05:49 PM
 
kumar kumar is offline
 

Advanced Member
  
Join Date: Apr 2003
Posts: 38
 

Default Re: X-Cart popup messages

Is there a way to add a "buy" button in related_products.tpl (upselling products) so the items listed on product.tpl under "related products" can have a buy now button? Once the button is clicked, the popup message would appear.

I have already tried copying the code for the "buy now" button in product.tpl, but is adds the item to the cart without the popup (so the customer doesn't know the item was added, since I have "Redirect customer to cart after adding a product" disabled.
Reply With Quote
  #40  
Old 03-31-2012, 08:04 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,191
 

Default Re: X-Cart popup messages

Because related products uses different way to list the products, you can make related products template to use the same products_t.tpl or products_list.tpl by calling one of them and passing related products array to it
__________________
Steve Stoyanov
CFLSystems.com
Web Development
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 12:30 AM.

   

 
X-Cart forums © 2001-2020