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

Upselling Products module modification

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 11-21-2003, 11:07 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Not sure if it's that I'm using an older version of x-cart, but adding to the wishlist does not work for me.
Code:
{if $login ne "" and $active_modules.Wishlist ne ""} <form name=orderform_{$product_links[cat_num].productid} method=post action="cart.php?mode=add">{include file="customer/add2wl.tpl"}</form> {/if}

I've removed the $js_enabled check and the button shows, there's just no way of submitting the information.
Reply With Quote
  #22  
Old 11-21-2003, 11:30 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

This code did the trick for me:

Code:
{if $login ne "" and $active_modules.Wishlist ne ""} {include file="customer/add2wl.tpl} {/if}
Reply With Quote
  #23  
Old 11-24-2003, 04:25 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Couldn't get the options to work and don't have time right now to stick with it

I just removed the add to cart and put a link to the product for now.
Reply With Quote
  #24  
Old 11-26-2003, 12:59 AM
 
maki maki is offline
 

Advanced Member
  
Join Date: May 2003
Location: Spain
Posts: 46
 

Default

Quote:
Originally Posted by Jon
Not sure if it's that I'm using an older version of x-cart, but adding to the wishlist does not work for me.
when I did mod used the 3.4.7, now use the 3.4.9. I do not know if it works with previous versions

Quote:
Originally Posted by Jon
I've removed the $js_enabled check and the button shows, there's just no way of submitting the information.
indeed, verificacion does in buy_now.tpl

the question of the product options:
I know because it does not work well, but not to be solved it.

the verification takes place in buy_now.tpl:
{if ($active_modules.Product_Options ne "" and $product.product_options) or $product.price eq 0}
but the consultation that is made in xcart/modules/Upselling_Products/related_products.php does not include the table product_options, this is the cause of which $product.product_options= null and the Link of add_to_cart always note to the cart.

my knowledge do not reach to solve it
if somebody is animated....

greetings
Reply With Quote
  #25  
Old 11-26-2003, 03:52 AM
 
maki maki is offline
 

Advanced Member
  
Join Date: May 2003
Location: Spain
Posts: 46
 

Default Products Options finally FIXED !!!!

Hi !!!

Finally I have been able to solve the question of the Product Options .

The code I have extracted it of the file featured_products.php and I have adapted it to the file related_products.php

as or I commented, I am not expert in programming, so if the code can be optimized or needed corrections, it would thank for any contribution

greetings !!!
Reply With Quote
  #26  
Old 11-26-2003, 03:54 AM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

Cool!

Good work Maki!

Can you post the code here? Then we can start testing it.
Reply With Quote
  #27  
Old 11-26-2003, 04:07 AM
 
maki maki is offline
 

Advanced Member
  
Join Date: May 2003
Location: Spain
Posts: 46
 

Default

Quote:
Originally Posted by adpboss
Cool!

Good work Maki!

Can you post the code here? Then we can start testing it.

arf arf !!! i have posted the code in fisrt post .... GO GO GO rock&Roll !!!
Reply With Quote
  #28  
Old 12-03-2003, 03:50 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

Good Mode, I didn't have to make any changes in php though, all I did replaced tpl code. Working good in 3.4.0.
Reply With Quote
  #29  
Old 12-03-2003, 04:25 AM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

Default

Forgot to Mention,
Is there a way to do check box for products and have one add to cart or buy now button with out option of quantity box?
thanks
Reply With Quote
  #30  
Old 12-03-2003, 12:57 PM
 
grahammills grahammills is offline
 

Advanced Member
  
Join Date: May 2003
Posts: 39
 

Default

Can anyone tell me how the change the id to the sku on the upsell?
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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 05:18 PM.

   

 
X-Cart forums © 2001-2020