Jump to content

Recommended Posts

The admin is now largely complete. Only 1/2 pages remain to be worked on. All the old tables have been replaced with responsive tables which will scale to the device size. The implementation will be satisfactory to view on medium sized devices and up. An alternative implementation that caters for all screen sizes is possible but then you have to resort to hiding/removing content for small devices. The osCommerce core code and functionality remains exactly the same.

Share this post


Link to post
Share on other sites

https://www.dropbox.com/s/gccwpu7hpgtmm3z/Force Customer Country W3.zip?dl=0

Force Customer Country

Contribution Author: Olaf Larsson

If you only operate in / ship to one country you might find this contribution useful. I have modified the files for:

1) create_account.php

2) includes/modules/address_book_details.php

3) includes/modules/checkout_new_address.php

Follow the instructions in the package.

w3-1-min.png.32b636caca4f24b2c77da6e9dd9a889e.pngw3-2-min.png.6fa0113f30bc34d0020b3cbe92b8c9ba.pngw3-3-min.png.4cbac4af1b09b7886efe904bd1367066.pngw3-4-min.png.c048ccd00bef70e547304b3eabd68468.pngw3-5-min.png.f76742262bbb099b1c4dd691a682ae7c.pngw3-6-min.png.3510d66353f5d7a2f8b0acaa51bbc617.png

Share this post


Link to post
Share on other sites

Today I am going to improve on the performance of my shop, by caching the configuration values which are queried on every page load.

Contribution: Configuration Cache for osCommerce 2.3

Before we install the contribution, I use the following debugger:

Before installation:

w3-1-min.png.a1ac8826a2a598aa085ceb9fc82661ae.png

After installation:

w3-2-min.png.95c4a9485867e21f2f0fa2ea7ca49931.png

Share this post


Link to post
Share on other sites

Now I go to one of my product pages where the also purchased module shows a few products.

w3-1-min.png.39ac511e2b2f3ec3375172759ecdf667.png

How many people still remember / or ever knew how to work cache? Go to page 68 of the original osCommerce documentation and find the explanation there. After configuring cache for my also purchased products, here is the result:

w3-2-min.png.e6c686efe2c7e6828957303294fae466.png

Share this post


Link to post
Share on other sites

There is no more need for includes/classes/boxes.php, however I will leave the code there as a fallback in case anybody has/installs old code onto the package. In your installation you can delete this file, and then also in application_top.php

// infobox
  require(DIR_WS_CLASSES . 'boxes.php'); 

can be removed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×