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
  #41  
Old 01-19-2004, 08:20 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

You mean there is other languages besides english? no way!
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #42  
Old 01-19-2004, 09:21 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Very funny, lets retake this in 8 years to see how stats are. Currently English is more important, I agree, although the most spoken is Mandarin.

Spanish is important for Negotiations in countries under development (best business's opportunities).
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #43  
Old 01-19-2004, 10:24 PM
  DataViking's Avatar 
DataViking DataViking is offline
 

eXpert
  
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 361
 

Default

Quote:
Originally Posted by leon
Spanish is important for Negotiations in countries under development (best business's opportunities).

I agree with you 100%
__________________
Web Design Web Design and Custom X-Cart Projects

http://www.dataviking.com

Mention the forums for discounts!
x-cart Version 4.1.8
Reply With Quote
  #44  
Old 03-07-2004, 05:35 PM
 
howain howain is offline
 

Newbie
  
Join Date: Dec 2003
Location: Australia
Posts: 5
 

Default

Excellent mod. One problem I have found, I am in Australian and have the GST applied. It does show up on the Upselling list but shows as 1% instead of the 10% that it is in the rest of the cart. Any ideas?
It actually reads: "includes GST 1%"
Reply With Quote
  #45  
Old 03-07-2004, 05:35 PM
 
howain howain is offline
 

Newbie
  
Join Date: Dec 2003
Location: Australia
Posts: 5
 

Default

Excellent mod. One problem I have found, I am in Australian and have the GST applied. It does show up on the Upselling list but shows as 1% instead of the 10% that it is in the rest of the cart. Any ideas?
It actually reads: "includes GST 1%"
Reply With Quote
  #46  
Old 03-15-2004, 09:31 AM
 
elmtronics elmtronics is offline
 

Advanced Member
  
Join Date: Aug 2003
Posts: 59
 

Default

This is probably my favorite mod to date. Having said that I found a bug

When listing products with the wholesale option they do show up... but it reflects the pricing of the main product rather than the up sell product.

If that does not make sense I'll try to explain

Product A: blah blah our price: $1.00

Product A: wholesale price: 5- .75 10- .50

Up sell product: yadda yadda: $10.00

Up sell product wholesale: 5- .75 10- .50

Yadda Yadda wholesale should be 5-$9.00 10-$8.00

Not good

I really really like this mod but will have to remove it im afraid. If someone wants to take a stab at it I can provide a link to better explain the problem.


*edit*

Just to add to this Even if you did not place wholesale prices on the up sell product the main products wholesale prices show up on it
__________________
X-Cart version 3.5.11live
php ver 4.3.7
Reply With Quote
  #47  
Old 03-15-2004, 05:36 PM
  DataViking's Avatar 
DataViking DataViking is offline
 

eXpert
  
Join Date: Jan 2003
Location: Las Vegas, NV
Posts: 361
 

Default

You are correct, it does that. but when they click on it it takes them to the base "original" price

But, don't get me wrong i agree with you 100%
__________________
Web Design Web Design and Custom X-Cart Projects

http://www.dataviking.com

Mention the forums for discounts!
x-cart Version 4.1.8
Reply With Quote
  #48  
Old 03-19-2004, 01:55 AM
 
maki maki is offline
 

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

Default

Quote:
Originally Posted by leon
Just found a bug (if you can call it that way). Maki this mod is great, but it doesnt support Multilingual sites, products are output in English only.

That seams to apply to the Recommend list as well.

Hi !!!

Add the follow code in ../xcart/modules/Upselling_Products/related_products.php



Code:
# # Check if product have product options # $product_links[$p_v][product_options] = array_pop(func_query_first("SELECT COUNT(*) FROM $sql_tbl[product_options] WHERE productid='".$p_k["productid"]."'")); # ### Adds from here ### # # Replace descr and fulldescr on international (if defined) # $int_res = func_query_first("SELECT * FROM $sql_tbl[products_lng] WHERE code='$store_language' AND productid='".$p_k['productid']."'"); if ($int_res["product"]){ $product_links[$p_v]["product"] = stripslashes($int_res["product"]); } if ($int_res["descr"]){ $product_links[$p_v]["descr"] = str_replace("\n"," ", stripslashes($int_res["descr"])); } if ($int_res["full_descr"]){ $product_links[$p_v]["fulldescr"] = str_replace("\n"," ", stripslashes($int_res["full_descr"])); } # ### UP to here ### # } } }; $smarty->assign("product_links",$product_links); ?>

also I will update it in first post

Greetings !!!
Reply With Quote
  #49  
Old 03-19-2004, 03:11 AM
 
maki maki is offline
 

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

Default

Quote:
Originally Posted by howain
Excellent mod. One problem I have found, I am in Australian and have the GST applied. It does show up on the Upselling list but shows as 1% instead of the 10% that it is in the rest of the cart. Any ideas?
It actually reads: "includes GST 1%"

Hi howain !!!

I have simulated to be of Canada (that tax in Spain is not applied), and with himself not to detect the error that you mention. Not even it shows in the list of upselling to apply the GST tax

it would be possible that you included a Link to see and to understand the error that you comment?

Greetings !!
Reply With Quote
  #50  
Old 03-19-2004, 04:53 AM
 
maki maki is offline
 

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

Default

Quote:
Originally Posted by elmtronics
This is probably my favorite mod to date. Having said that I found a bug

When listing products with the wholesale option they do show up... but it reflects the pricing of the main product rather than the up sell product.

Hi elmtronics !!

read in the first post:

2003/10/12 ---> edited the code

- Added: |escape:"html" in the $smarty's variables "add to cart"
- Removed: Showing "product prices by quantity" in list products (it showed the prices of the main article, still adding variable "product=$product_links[cat_num]" in the call to the file buy_now.tpl ... lol

One of the reasons by which I eliminated the visualization for wholesale prices table was that he was not very aesthetic to see it in the upselling products listing by the size of the table of prices and amounts ... he is not bug

a solution could be to direct to the client to the card of the product if has wholesale_price, as it happens if the price is 0 or if it has product_options

Greetings !!
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 08:44 AM.

   

 
X-Cart forums © 2001-2020