Jump to content

 

KeyGenRus

Member Since 03 Oct 2011
Offline Last Active Jun 05 2012 11:42 AM
-----

Topics I've Started

after updating product: product position problem

24 May 2012 - 12:05 PM

Hi all.
After updating product in update page, the position of current (updatet) product automaticaly sets to 0 (zero).
Dear friends, anybody know how to FIX this problem im CS cart ?

thank you anywhere!

Shipping Rates Depending of Billing Country

08 May 2012 - 07:00 AM

Hi.
I want to change shipping rates by Depending of Billing Country. How can we it made?

Checkout starting with STEP two (2)

09 March 2012 - 07:57 AM

You must open the file:
controllers/customer/checkout.php


At the line ~ 913-920, you must edit this code:


if (empty($edit_step) || empty($completed_steps[$edit_step])) {
// If we don't pass step to edit, open default (from settings)
if (!empty($completed_steps['step_three'])) {
$edit_step = 'step_three';
} else {
$edit_step = !empty($completed_steps['step_one']) ? 'step_two' : 'step_one';
}
}

To this:


if (empty($edit_step) || empty($completed_steps[$edit_step])) {
// If we don't pass step to edit, open default (from settings)
if (!empty($completed_steps['step_three'])) {
$edit_step = 'step_two';
} else {
$edit_step = !empty($completed_steps['step_one']) ? 'step_two' : 'step_one';
}
}

For me, it's works correctly ;)

Quanity and product option

21 February 2012 - 07:41 AM

Hi.
Who know, in what function i must made changes for displaying price with this method when any product option selected.

THIS.
Product option + Product price * quanity

change to this.

(product price * quanity) + product option.

Show all currencies rates in the block

03 February 2012 - 08:16 AM

Hi.
If you want to show in your CS CART all currencies data like this.

1USD = 200 EUR
1USD = 500 RUB
1USD = 600GB


You must add this in the costomer controllers init file:

After this code
$view_mail->assign('index_script', $index_script);

Add this


$currencies = db_get_array("SELECT a.*, b.description FROM ?:currencies as a LEFT JOIN ?:currency_descriptions as b ON a.currency_code = b.currency_code AND lang_code = ?s ORDER BY position", DESCR_SL);

$view->assign('currencies_data', $currencies);

And after, in the template block you want (or created by you) you must make some changes like this, to show all currencies data.

{$currencies_data.1.coefficient|number_format:0:"`$smarty.const.CURRENCY_SYMBOLS_DECIMAL_SEPARATOR`":"`$smarty.const.CURRENCY_SYMBOLS_THOUSANDS_SEPARATOR`"}

If you wan to show other currencies data, you must just edit the $currencies_data.1 -numbe!
you want.
You also can call other data from currensies.

Thank You!