Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Built-in Shipping and Payment Modules / Store Pickup Option To Be Default Mark Selected

Store Pickup Option To Be Default Mark Selected

Locked

Started by tajul_ashyqin on 25 May 2007, 7:41 AM · Views: 1,861

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 May 2007, 7:41 AM
#1
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Store Pickup Option To Be Default Mark Selected

Hi,

Could somebody help me on how to code the built-in store pickup option to be default mark selected as it is the only delivery method for my shop?! :smile:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

26 May 2007, 5:43 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Store Pickup Option To Be Default Mark Selected

That is actually hard coded to never be the default ... :eek:

You would have to customize the:
/includes/classes/shipping.php

It is down near the bottom ...

NOTE: there are no overrides for classes

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 May 2007, 3:58 AM
#3
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Store Pickup Option To Be Default Mark Selected

Hi Ajeh,

Thanx for your reply but how i am gonna code that?:laugh: i am very limited in PHP...

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

28 May 2007, 4:03 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Store Pickup Option To Be Default Mark Selected

Doing it the cheaters way ...

Search the file:
/includes/classes/shipping.php

Find the two references to:
'storepickup'

Change to:
'HIDEstorepickup'

Now Store Pick Up will be auto selected as the cheapest rate ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 May 2007, 6:03 AM
#5
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Store Pickup Option To Be Default Mark Selected

:clap: it's working...thanx Ajeh !!!

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

28 May 2007, 2:55 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Store Pickup Option To Be Default Mark Selected

You are most welcome ... thanks for the update ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!