X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Upselling Products module modification (https://forum.x-cart.com/showthread.php?t=4444)

B00MER 01-19-2004 08:20 PM

You mean there is other languages besides english? no way! 8O :roll:

leon 01-19-2004 09:21 PM

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). :wink:

DataViking 01-19-2004 10:24 PM

Quote:

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


I agree with you 100%

howain 03-07-2004 05:35 PM

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%"

howain 03-07-2004 05:35 PM

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%"

elmtronics 03-15-2004 09:31 AM

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

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 :D

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

DataViking 03-15-2004 05:36 PM

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%

maki 03-19-2004 01:55 AM

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 !!!

maki 03-19-2004 03:11 AM

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 !!

maki 03-19-2004 04:53 AM

Quote:

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

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 :wink:

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 !!


All times are GMT -8. The time now is 01:39 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.