X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Showing shipping period within the cart. (https://forum.x-cart.com/showthread.php?t=5583)

stubborn 12-12-2003 01:54 PM

Showing shipping period within the cart.
 
When a customer is in their cart, I want them to be able to pull down the aval shipping options and have the number of days in () next to the shipping method.

Has anyone done this before?

jeeya 12-12-2003 03:05 PM

you can just type it in next to the Shipping Method Lable in shipping methods section -

like - Priority Mail (3 Days).

stubborn 12-12-2003 03:30 PM

two things with this....

1. Maybe you can, but through the admin section, I don't have an option to edit the shipping method names.

2. there is already a field for the "period", I just want to know what to edit (what template) so I can add that field to the drop down shown on the customers cart.

leon 12-12-2003 06:10 PM

Yes you can (edit the shipping name), since it is just a variable from the database, and in your administration page it is editable.

bobbyftk 07-27-2005 04:09 PM

can you edit the shipping name if using real-time shipping?

i cant seem where to find this, or if its possible.

seems odd that there is place for the "Period" but then it doesnt show anywhere on the customer side.

i just want to add the transit times to show for each option when a customer is selecting.

balinor 07-27-2005 05:24 PM

The Real-time methods are pre-defined and you can't change them in the admin area.

bobbyftk 07-27-2005 05:58 PM

thats what i thought. so why offer the "period" box to enter transit times, if it doesnt do anything...

balinor 07-27-2005 06:06 PM

The period box is meant for user-defined options. I agree it should either be removed for real-time or actually made useful :)

Dongan 07-27-2005 07:11 PM

Hi,

I have made it useful. See this scenario. The customer should be able to select their preferred delivery date while they want to present some gifts on particular day. They must be allowed to enter their preferred delivery date. If the date is validated as follows

1) The preferred delivery date should not be less than the current date
2) The preferred delivery date should not be less than the lead time (Lead time is the period for delivering the goods and making time - It depends on the seller).


What i have done, just i have changed the field type to int and the values are now in integer(2,3,4...) and i will take this for calculation..

You can find the demo at

http://www.just4naija.com/home.php?shopkey=500 at the checkout before confirming the order.

david_ygao 01-04-2007 04:33 PM

Re: Showing shipping period within the cart.
 
Before 2007 New Year, what I filled in the "period" box (under shipping methods in store administrator page) can show between the shipping method name and shipping fee (on the customer's shopping cart). But after New Year, it disappears on shopping cart.

Anybody can help ?

X-cart 4.18 gold

inebriate 01-04-2007 09:11 PM

Re: Showing shipping period within the cart.
 
i just implemented this a few days ago since it doesnt display when using real time shipping...this mod will pull the shipping time that you define in the admin's shipping method section

in shipping/shipping.php
Code:

foreach($intershipper_rates as $intershipper_rate) {
$ship_time = "";
if (!empty($intershipper_rate["shipping_time"]))
$ship_time = $intershipper_rate["shipping_time"]." ".($intershipper_rate["shipping_time"]>"1" ? "days" : "day");
$result = func_query_first("SELECT *, '$intershipper_rate[rate]' AS rate, '$intershipper_rate[warning]' AS warning, '$ship_time' AS shipping_time FROM $sql_tbl[shipping] WHERE subcode='$intershipper_rate[methodid]' AND active='Y' $weight_condition ORDER BY orderby");
if ($result)
$shipping[] = $result;
}

and replace it with
Code:

foreach($intershipper_rates as $intershipper_rate) {
$ship_time = "";
if (!empty($intershipper_rate["shipping_time"])) {
$ship_time = $intershipper_rate["shipping_time"]." ".($intershipper_rate["shipping_time"]>"1" ? "days" : "day");
$result = func_query_first("SELECT *, '$intershipper_rate[rate]' AS rate, '$intershipper_rate[warning]' AS warning, '$ship_time' AS shipping_time FROM $sql_tbl[shipping] WHERE subcode='$intershipper_rate[methodid]' AND active='Y' $weight_condition ORDER BY orderby");
}
else {
$result = func_query_first("SELECT *, '$intershipper_rate[rate]' AS rate, '$intershipper_rate[warning]' AS warning, shipping_time FROM $sql_tbl[shipping] WHERE subcode='$intershipper_rate[methodid]' AND active='Y' $weight_condition ORDER BY orderby");
}

if ($result)
$shipping[] = $result;
}



then in skin1/customer/main/cart_totals.tpl, find
Code:

<SELECT name="shippingid" onchange="document.cartform.submit()">
{section name=ship_num loop=$shipping}
<OPTION value="{$shipping[ship_num].shippingid}" {if $shipping[ship_num].shippingid eq $cart.shippingid}selected{/if}>{$shipping[ship_num].shipping|trademark:$insert_trademark:"alt"}{if $config.Appearance.display_shipping_cost eq "Y" and ($login ne "" or $config.General.apply_default_country eq "Y" or $cart.shipping_cost gt 0)} ({include file="currency.tpl" value=$shipping[ship_num].rate}){/if}</OPTION>
{/section}
</SELECT>

and replace with
Code:

<SELECT name="shippingid" onchange="document.cartform.submit()">
{section name=ship_num loop=$shipping}
<OPTION value="{$shipping[ship_num].shippingid}" {if $shipping[ship_num].shippingid eq $cart.shippingid}selected{/if}>{$shipping[ship_num].shipping|trademark:$insert_trademark:"alt"}{if $shipping[ship_num].shipping_time ne ""} : {$shipping[ship_num].shipping_time}{/if} {if $config.Appearance.display_shipping_cost eq "Y" and ($login ne "" or $config.General.apply_default_country eq "Y" or $cart.shipping_cost gt 0)} ({include file="currency.tpl" value=$shipping[ship_num].rate}){/if}</OPTION>
{/section}
</SELECT>


david_ygao 01-08-2007 06:03 AM

Re: Showing shipping period within the cart.
 
I do not know how to fix this problem with UPS shipping module since I am not familair with the software language.

UPS technical support told me UPS has changed sth after New Year, and our shopping cart software needs updating.

Tahnks,

david
xcart 4.18 gold

neaisha 01-18-2007 09:59 AM

Re: Showing shipping period within the cart.
 
inebriate,

before i screw something up, i was wondering if this fix works for 4.1.x as well?

neaisha 01-18-2007 10:08 AM

Re: Showing shipping period within the cart.
 
and the survey says...yes :-)

thanks

millsryno 08-26-2007 03:52 PM

Re: Showing shipping period within the cart.
 
This works excellent, just what I was looking for. Thanks!


All times are GMT -8. The time now is 07:58 AM.

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