Jump to content
Latest News: (loading..)

Recommended Posts

I will try my best to find time to test over the weekend...

Thanks @piernas


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites

Coding, Testing, Beer.

:)


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites

We're in,  if you keep it in that order.  :biggrin:

Seriously though...is there anything specific that we can do to help out?

Dan

 

 

Share this post


Link to post
Share on other sites
16 hours ago, Dan Cole said:

Seriously though...is there anything specific that we can do to help out?

The conditions/privacy/shipping pages are broadly similar.  How about coming up with a system to have "info" pages all working off of 1 page, along with a little admin section for them so that shopowners can easily add new ones as they want.  Maybe using the tp_ system as a starter ?


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites
Just now, burt said:

The conditions/privacy/shipping pages are broadly similar.  How about coming up with a system to have "info" pages all working off of 1 page, along with a little admin section for them so that shopowners can easily add new ones as they want.  Maybe using the tp_ system as a starter ?

Test out your new checkout things to absolute destruction.  Test piernas's better modules page?


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites

I think I asked this before, but have to try again:

Is there a chance to add two new methods to every module as a standard?

    function toggle() {
       $this->enabled = !$this->enabled;
        tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . ($this->enabled ? "True": "False") . "', last_modified = now() where configuration_key = '" .  $this->cfg_key . "STATUS" . "'");
    }

    function set_sort_order($sort_order) {
      $this->sort_order = $sort_order;
      tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $this->sort_order . "', last_modified = now() where configuration_key = '" .  $this->cfg_key . "SORT_ORDER" . "'");
    }

This would allow the admin files to easily enable/disable and sort the modules without accessing each one configuration (just one click). There are other methods to do it but looks 'cheats' to me.

I can do it myself if you agree.

 

 

Share this post


Link to post
Share on other sites
Posted (edited)

@piernas there is no need to add such methods to the modules.
As this is only for the admin page, you should be able to manipulate the modules_content.php.
i suggest you take a look at the sections in modules_content.php where there is made a call to the module $keys.
Also look in the top of the modules_content where there is made a check for :

 

  $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_CONTENT_INSTALLED' limit 1");
  if (tep_db_num_rows($check_query) < 1) {
    tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Installed Modules', 'MODULE_CONTENT_INSTALLED', '', 'This is automatically updated. No need to edit.', '6', '0', now())");
    define('MODULE_CONTENT_INSTALLED', '');
  }

For the rest.... use your imagination for what can be done with that information. Goodluck!!!


Forget everything  Sayed.........

Learn javascript/jQuery................
https://jqueryui.com/sortable/

Edited by wHiTeHaT

Share this post


Link to post
Share on other sites

@wHiTeHaT I think you misunderstood the utility of the code. It's not for displaying but for changing a constant in the database likeother standard methods as install() check() remove() or keys() . All of them are shorthands for getting/setting database options without writting queries. No need for jquery/other 3rd party addons.

Share this post


Link to post
Share on other sites
7 hours ago, burt said:

The conditions/privacy/shipping pages are broadly similar.  How about coming up with a system to have "info" pages all working off of 1 page, along with a little admin section for them so that shopowners can easily add new ones as they want.  Maybe using the tp_ system as a starter ?

This kind of overlaps with an addon ... I've held off uploading the free version to the apps area while I finish the automated upgrade to pro

page-list-view.jpg

editor-view.jpg


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce here: https://github.com/gburton/osCommerce-234-bootstrap/archive/master.zip

 

For Github users: Bootstrap addons - one per branch - https://github.com/BrockleyJohn/Responsive-osCommerce/wiki/Overview-of-Branches

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
17 hours ago, BrockleyJohn said:

This kind of overlaps with an addon ... 

Does this addon use the tp_ system ?


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

Share this post


Link to post
Share on other sites
20 hours ago, burt said:

Does this addon use the tp_ system ?

No, I was just picking up on the admin and creating new pages aspect. Really it's targetted at quickly creating new landing pages and so on with their own content module directory for sliders etc and editing the content of the standard pages easily, and scopes out accessing them.

With a bit of thinking before writing, I guess you're envisaging a store info page that's basically a getContent call, like the main account options page, with the standard pages of conditions, privacy and so on as a templated list. That set would need to be put together first before working out how to administer them.


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce here: https://github.com/gburton/osCommerce-234-bootstrap/archive/master.zip

 

For Github users: Bootstrap addons - one per branch - https://github.com/BrockleyJohn/Responsive-osCommerce/wiki/Overview-of-Branches

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
4 hours ago, BrockleyJohn said:

No, I was just picking up on the admin and creating new pages aspect. Really it's targetted at quickly creating new landing pages and so on with their own content module directory for sliders etc and editing the content of the standard pages easily, and scopes out accessing them.

With a bit of thinking before writing, I guess you're envisaging a store info page that's basically a getContent call, like the main account options page, with the standard pages of conditions, privacy and so on as a templated list. That set would need to be put together first before working out how to administer them.

I'm thinking something like;

information.php (which is a tp_ page).  

Then some system of adding in "page details" so that;

  • information.php?shipping
  • information.php?conditions
  • information.php?sizing
  • information.php?faq

and so on.  Then totally remove conditions.php, shipping.php etc

It's probably just about bottom of the list of to-do's, but if anyone wants to take it on....


This is a signature that appears on all my posts.  
IF YOU MAKE A POST REQUESTING HELP...please state the exact version
of osCommerce that you are using. THANKS

 
Get the latest current code (community-supported responsive 2.3.4.1BS Edge) here

 

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

×