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)
-   -   The Display Order of Shipping Carriers (https://forum.x-cart.com/showthread.php?t=60339)

ghraham@gmail.com 07-28-2011 01:17 PM

The Display Order of Shipping Carriers
 
Hello,

On our site we offer two shipping options, USPS and UPS. We are using the fast lane checkout - and on the shipping page UPS is chosen by default. While a customer can still choose USPS from the dropdown box, we would like to have USPS be the default and UPS be a secondary choice.

Does anyone know where I would need to look to change the pecking order of these options? And what values should be assigned?

Sorry, but you have to register to be able to add things to our cart - manufacturer regulations - But here is the link to the shop if you need to get in there:

http://www.radiantlivingcenter.com

JamesH 08-08-2011 11:56 AM

Re: The Display Order of Shipping Carriers
 
I too would like to know this answer. I have been looking in the database for a table with an order by section as well and can not find anything. Also looking for a .tpl file that controls shipping order.

balinor 08-09-2011 04:09 AM

Re: The Display Order of Shipping Carriers
 
The shipping methods are controlled by the POS box on the shipping methods page. The lower the number, the higher on the list it appears.

JamesH 08-09-2011 07:54 PM

Re: The Display Order of Shipping Carriers
 
Thank you for the reply balinor. I am trying to get the default shipping carrier displayed on the shipping/checkout page to display other carriers AKA "USPS" first instead of UPS so my less observant customers would not automatically select shipping from UPS. I could just turn off UPS but I do want to give customers the option of being charged extra for their shipping.:oops: I do see the position boxes but they are for the position of individual shipping methods. I would like to find the .tpl file withe the decision code. I am thinking I could also just display them all I only have 10 methods.

balinor 08-10-2011 05:27 AM

Re: The Display Order of Shipping Carriers
 
Ah, there is a hack somewhere in the forums for combining all of the methods into one area.

cflsystems 08-10-2011 06:55 AM

Re: The Display Order of Shipping Carriers
 
For 4.4.3 add this

Code:

define('ALL_CARRIERS',1);

to this file

include/func/func.shipping.php

just below

Code:

define('SHIPPING_SYSTEM', 1);

JamesH 08-10-2011 04:13 PM

Re: The Display Order of Shipping Carriers
 
Thank you. I fooled with it and it displays all USPS and UPS and any admin generated shipping methods together only when UPS is selected..... Now all I need is to figure out how to hide or remove the selector box.O:)

cflsystems 08-10-2011 07:10 PM

Re: The Display Order of Shipping Carriers
 
You can do this either from the template (use webmaster mode to find the exact one) or from the php script

JamesH 08-10-2011 07:44 PM

Re: The Display Order of Shipping Carriers
 
Thank you cflsystems. I will try the webmaster mode Are there any really good threads for how x-cart is sewn together. I am looking around and am seriously perplexed. Some files in the skin folder are doubled and triple sometimes. Edit the template......... :-k there is like 2780 files in the common folder...I'm new, does somebody have the treasure map they can lend me? I hope you can excuse my ignorance & sarcasm. I am not a proficient programmer by any stretch of the imagination. Guess I'll just start by reading all forum threads O:)

flyclothing 08-20-2011 11:13 AM

Re: The Display Order of Shipping Carriers
 
I added Steve's mod and took this out of the customer/main/checkout_shipping_methods.tpl and it seemed to remove the drop down.

{* Select the shipping carrier [begin] *}
{if $userinfo ne "" or $config.General.apply_default_country eq "Y" or $cart.shipping_cost gt 0}

{if $active_modules.UPS_OnLine_Tools and $config.Shipping.realtime_shipping eq "Y" and $config.Shipping.use_intershipper ne "Y" and $show_carriers_selector eq "Y" and $is_ups_carrier_empty ne "Y" and $is_other_carriers_empty ne "Y"}
<label class="form-text">
{$lng.lbl_shipping_carrier}:
{include file="main/select_carrier.tpl" name="selected_carrier" id="selected_carrier" onchange="javascript: self.location='cart.php?mode=`$main`&amp;action=up date&amp;selected_carrier='+this.options[this.selectedIndex].value;"}
</label>
<br />
<br />
{/if}
{/if}
{* Select the shipping carrier: [end] *}

Mr. G 03-14-2012 02:47 PM

Re: The Display Order of Shipping Carriers
 
I implemented Steve's change in post #6. It works perfectly in 4.4.5 and post #10 is not necessary in 4.4.5. That pull-down box disappears after I made the change in post #6.

clubbuilder1 04-02-2012 10:38 AM

Re: The Display Order of Shipping Carriers
 
Quote:

Originally Posted by cflsystems
For 4.4.3 add this

Code:

define('ALL_CARRIERS',1);

to this file

include/func/func.shipping.php

just below

Code:

define('SHIPPING_SYSTEM', 1);


Steve, this file does not exist in my version (include/func/func.shipping.php). I too am having the same problems as the other users here and would like to display both shipping methods together as well (without the drop-down). Any suggestions?

cflsystems 04-02-2012 01:37 PM

Re: The Display Order of Shipping Carriers
 
Quote:

Originally Posted by clubbuilder1
Steve, this file does not exist in my version (include/func/func.shipping.php). I too am having the same problems as the other users here and would like to display both shipping methods together as well (without the drop-down). Any suggestions?


In 4.1.x this is completelly different and requires changes to few files, look in the thread earlier for how to do in 4.1.x

clubbuilder1 04-02-2012 05:46 PM

Re: The Display Order of Shipping Carriers
 
The solution for my cart version was found here: http://forum.x-cart.com/showpost.php?p=158288&postcount=59

So far it appears to be working although some of the code was located in different spots.

earlgreg 04-02-2012 06:47 PM

Re: The Display Order of Shipping Carriers
 
I would like to add (in case no one else already has) that this method also works in X-Cart 4.4.4. I have been looking for a way to do this for months. Why didn't I search the forums sooner? I don't know, but I'll remember this before I rack my brains on the next problem.

Thomasb134 04-06-2012 07:29 PM

Re: The Display Order of Shipping Carriers
 
I just applied the patch exactly (as explained in post #6) to V4.4.5 and it works great. Thanks!

dunpeal 04-17-2012 09:54 PM

Re: The Display Order of Shipping Carriers
 
this does not work in 4.4.2

cflsystems 04-17-2012 10:05 PM

Re: The Display Order of Shipping Carriers
 
No it doesn't. It works on 4.4.3 and up. Versions before 4.4.3 need more changes in few files

dunpeal 04-18-2012 06:20 AM

Re: The Display Order of Shipping Carriers
 
ahh i see, steve do you think you could give me some direction on how to do this ? Thanks!

cflsystems 04-18-2012 09:28 AM

Re: The Display Order of Shipping Carriers
 
Files may have a little bit different code but the logic is the same - http://forum.x-cart.com/showpost.php?p=158288&postcount=59


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

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