Jump to content

PupStar

Members
  • Content count

    896
  • Joined

  • Last visited

  • Days Won

    10

Reputation Activity

  1. Like
    PupStar reacted to bruyndoncx in Bootstrap Tables   
    now read my instructions and then it does align properly, now just created a table mess
  2. Like
    PupStar reacted to bruyndoncx in Bootstrap Tables   
    upto including tbody above the while
    and last 4 lines starting from (including /tbody) below the while ending bracket
  3. Like
    PupStar reacted to Jack_mcs in More talk about the future of osCommerce   
    It's mostly due to a lack of time. While you are concentrating on the next version, as you should be, I, as a developer, need to look at previous versions. So now there are three major versions to develop and maintain addons for. Just managing one is proving too time-consuming for me. Some of my addons haven't been converted to 2.3 yet, much less the BS version, even though I've had requests to do so.
     
    As for posting in the discussions on SEO, that, as I understand it, was for Header Tags SEO Reloaded, which is an addon. I generally don't participate in support threads for addons, especially one so closely related to one of my own, but not for any reason other than time. I don't regularly post in the SEO 5 or Sitemap threads either.
     
    There is also the matter that I mentioned in another thread of not realizing the BS version was going to be the official version. Up until a few weeks ago I thought it was an addon you were releasing. And since I have my hands full with my own addons, I didn't have the time to work on someone else's. Now that I know that is not the case, I do plan on going through the BS version and will help if I can. Though I can't make it a priority due to other commitments.
  4. Like
    PupStar reacted to Mort-lemur in More talk about the future of osCommerce   
    @@burt I just think that everyone wants 2.3.4BS to be downloadable from the OSC site as the latest official version
  5. Like
    PupStar reacted to burt in More talk about the future of osCommerce   
    And we're back...sorry I had to sort out an issue with the core code.

    So, over the past decade we have had nothing but complaints about osCommerce, the lack of progress and so on. I was one of those complainants, as were you, as were many many others. Some people left, some people stayed. I left for a few years. When I came back I was amazed to see osCommerce was *still* at 2.2, admittedly within a short while it was at 2.3.

    Fast forward 4 years, and I find myself invited onto the Team. That means that I now have a say in which way this ship is steered, the ONLY full-time dev (ie not a shopowner) who does, other than H himself. That puts me in a good position to liason between my own beliefs in what ecommerce is (based on seeing the internals of 100s of live-shops per annum), what osCommerce (the entity, not the software) believes ecommerce is and what shopowners believe ecommerce is...no one else is in such a position.

    In the 18 months that I've been involved, what have you seen ? Nothing but forward progress. I am on the Team. I am the team when it comes to 2.3.4[r], no one else on the team has been involved at all. My github is linked from oscommerce.com, therefore it is de-facto an official account.
     
    As you (as in the shopowning community) have a team member working on a linked github account, and you have been made aware that the work in 2.3.4[r] is the path to 2.4, does it not make it plain that it is very welcome to be talked about at this forum ?

    It takes one person to start to change things, that was me.  Since then I have had nothing but problems from many shopowners and developers who feel they have been done a dis-service somehow.   
     
    The community version is just that!  It's put together by the community.  That work will be adopted into the official branch...as it is stellar work done by a small handful of people for the good of everyone.  
  6. Like
    PupStar got a reaction from Mort-lemur in How to build a content module   
    This brief guide is for anyone who wants to make their own content module.
     
    The code below shows how to make a 'Call to Action' module as inspired by the template made by Gary
     
    http://www.template.me.uk/responsive-saul/index.php
     
    This particular call to action module displays a checkout message in the header when there are products in the shopping cart prompting the user to finish their order.
     
    Step 1.
    Create a file in catalog/includes/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ class cm_header_call_to_checkout { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function cm_header_call_to_checkout() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE; $this->description = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION; if ( defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS') ) { $this->sort_order = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER; $this->enabled = (MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS == 'True'); } } function execute() { global $PHP_SELF, $cart, $currencies, $HTTP_GET_VARS, $request_type, $currency, $oscTemplate; $content_width = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH; if ($cart->count_contents() > 0) { $call_to_checkout .= '<div class="alert alert-danger text-center call_to_checkout" role="alert">' . sprintf(TEXT_CALL_TO_CHECKOUT, $cart->count_contents()) . '  ' . tep_draw_button(IMAGE_BUTTON_CALL_TO_CHECKOUT, 'fa fa-thumbs-o-up fa-lg', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success') . '</div>'; }else{ } ob_start(); include(DIR_WS_MODULES . 'content/' . $this->group . '/templates/call_to_checkout.php'); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Call to checkout Module', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'True', 'Do you want to enable the call to checkout Box content module?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', '4', 'What width container should the content be shown in?', '6', '1', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER'); } } Step 2.
    Create a file in catalog/includes/modules/content/header/templates called call_to_checkout.php and add the following code to it:
    <div class="header col-sm-<?php echo $content_width; ?>"> <?php echo $call_to_checkout; ?> </div> Step 3.
    Create a file in catalog/includes/languages/english/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE', 'Call to Checkout'); define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION', 'Adds a call to checkout action into the Header Area of your site.'); Step 4.
    Add the following to catalog/includes/languages/english.php
    define('TEXT_CALL_TO_CHECKOUT', '<i class="fa fa-flag fa-lg"></i>  You have %s item(s) in your shopping basket, click to proceed through the checkout'); Then all you need to do is go to your admin and install the module, select the width and the sort order
     
    Hopefully this will give people ideas on how to create further content modules.
     
    Mark
  7. Like
    PupStar got a reaction from Tsimi in Bootstrap Home Page Carousel Banner Slider Module Plugin Complete - Testing Welcome   
    @@vampirehunter
     
    well done, it works well :thumbsup:
     
    just do us all a favour and stop posting in lots of different threads :P it makes it a bloomin nightmare to follow you lol
  8. Like
    PupStar reacted to burt in 2.3.4(normal) to 2.3.4(responsive) database conversion script   
    Make a backup copy of your 2.3.4 database and store it safely somewhere.

    Then, run this SQL, using PHPMyAdmin:
     
    http://pastebin.com/Kp7X5rhL

    This *should* update your 2.3.4 db to make it usable with the Responsive fileset.
    Please report any errors or omissions, here, thanks.
     
    PLEASE READ THE FIRST FEW LINES OF COMMENTS IN THAT SQL CODE!!!

    Note that you will still need to install required some modules:
     
    EG:
    Admin > Modules > Content > {install}
    Admin > Modules > Header Tags > {install}
    Admin > Modules > Payment > {install}
    Admin > Modules > Shipping > {install}
    etc
     
     
    THIS IS NOT A THREAD FOR REQUESTING SUPPORT.
    If you are in over your head, and do not know what to do...don't guess at doing things.  Ask your question(s) in an appropriate thread, or post for commercial help.
     
     
    Thank you to the Forum Members who helped put this script together.
  9. Like
    PupStar reacted to Gyakutsuki in How to build a content module   
    Dan, the next release, I think,  delete the FILENAME constant
     
    also for your script : $call_to_checkout .=
    is 
    $call_to_checkout =
     
    +
  10. Like
    PupStar reacted to burt in How to build a content module   
    In Step 4, you could add that text to the same file as Step 3...give it a go ?
     
    I'm also wondering how this would look/react as a hook file rather than a CM file.  
    Less flexible I think, less code also.  I'll see if I can recreate it.
  11. Like
    PupStar reacted to burt in How to build a content module   
    Excellent @@PupStar awesome to see new code coming out in modules :)
     
    1 small tip (not just for modules but for everywhere in osc):
     
     
    tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')  
    to
     
     
    tep_href_link('checkout_shipping.php', '', 'SSL')
  12. Like
    PupStar reacted to Tsimi in How to build a content module   
    Very nice Mark!
     
    I would like to see a tutorial with a bit more complicate function. Something that uses a database query and javascript/jquery and php.
    I have a hard time to get my head around that... :wacko:
  13. Like
    PupStar got a reaction from Mort-lemur in How to build a content module   
    This brief guide is for anyone who wants to make their own content module.
     
    The code below shows how to make a 'Call to Action' module as inspired by the template made by Gary
     
    http://www.template.me.uk/responsive-saul/index.php
     
    This particular call to action module displays a checkout message in the header when there are products in the shopping cart prompting the user to finish their order.
     
    Step 1.
    Create a file in catalog/includes/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ class cm_header_call_to_checkout { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function cm_header_call_to_checkout() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE; $this->description = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION; if ( defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS') ) { $this->sort_order = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER; $this->enabled = (MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS == 'True'); } } function execute() { global $PHP_SELF, $cart, $currencies, $HTTP_GET_VARS, $request_type, $currency, $oscTemplate; $content_width = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH; if ($cart->count_contents() > 0) { $call_to_checkout .= '<div class="alert alert-danger text-center call_to_checkout" role="alert">' . sprintf(TEXT_CALL_TO_CHECKOUT, $cart->count_contents()) . '  ' . tep_draw_button(IMAGE_BUTTON_CALL_TO_CHECKOUT, 'fa fa-thumbs-o-up fa-lg', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success') . '</div>'; }else{ } ob_start(); include(DIR_WS_MODULES . 'content/' . $this->group . '/templates/call_to_checkout.php'); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Call to checkout Module', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'True', 'Do you want to enable the call to checkout Box content module?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', '4', 'What width container should the content be shown in?', '6', '1', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER'); } } Step 2.
    Create a file in catalog/includes/modules/content/header/templates called call_to_checkout.php and add the following code to it:
    <div class="header col-sm-<?php echo $content_width; ?>"> <?php echo $call_to_checkout; ?> </div> Step 3.
    Create a file in catalog/includes/languages/english/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE', 'Call to Checkout'); define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION', 'Adds a call to checkout action into the Header Area of your site.'); Step 4.
    Add the following to catalog/includes/languages/english.php
    define('TEXT_CALL_TO_CHECKOUT', '<i class="fa fa-flag fa-lg"></i>  You have %s item(s) in your shopping basket, click to proceed through the checkout'); Then all you need to do is go to your admin and install the module, select the width and the sort order
     
    Hopefully this will give people ideas on how to create further content modules.
     
    Mark
  14. Like
    PupStar got a reaction from Mort-lemur in How to build a content module   
    This brief guide is for anyone who wants to make their own content module.
     
    The code below shows how to make a 'Call to Action' module as inspired by the template made by Gary
     
    http://www.template.me.uk/responsive-saul/index.php
     
    This particular call to action module displays a checkout message in the header when there are products in the shopping cart prompting the user to finish their order.
     
    Step 1.
    Create a file in catalog/includes/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ class cm_header_call_to_checkout { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function cm_header_call_to_checkout() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE; $this->description = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION; if ( defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS') ) { $this->sort_order = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER; $this->enabled = (MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS == 'True'); } } function execute() { global $PHP_SELF, $cart, $currencies, $HTTP_GET_VARS, $request_type, $currency, $oscTemplate; $content_width = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH; if ($cart->count_contents() > 0) { $call_to_checkout .= '<div class="alert alert-danger text-center call_to_checkout" role="alert">' . sprintf(TEXT_CALL_TO_CHECKOUT, $cart->count_contents()) . '  ' . tep_draw_button(IMAGE_BUTTON_CALL_TO_CHECKOUT, 'fa fa-thumbs-o-up fa-lg', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success') . '</div>'; }else{ } ob_start(); include(DIR_WS_MODULES . 'content/' . $this->group . '/templates/call_to_checkout.php'); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Call to checkout Module', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'True', 'Do you want to enable the call to checkout Box content module?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', '4', 'What width container should the content be shown in?', '6', '1', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER'); } } Step 2.
    Create a file in catalog/includes/modules/content/header/templates called call_to_checkout.php and add the following code to it:
    <div class="header col-sm-<?php echo $content_width; ?>"> <?php echo $call_to_checkout; ?> </div> Step 3.
    Create a file in catalog/includes/languages/english/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE', 'Call to Checkout'); define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION', 'Adds a call to checkout action into the Header Area of your site.'); Step 4.
    Add the following to catalog/includes/languages/english.php
    define('TEXT_CALL_TO_CHECKOUT', '<i class="fa fa-flag fa-lg"></i>  You have %s item(s) in your shopping basket, click to proceed through the checkout'); Then all you need to do is go to your admin and install the module, select the width and the sort order
     
    Hopefully this will give people ideas on how to create further content modules.
     
    Mark
  15. Like
    PupStar got a reaction from Mort-lemur in How to build a content module   
    This brief guide is for anyone who wants to make their own content module.
     
    The code below shows how to make a 'Call to Action' module as inspired by the template made by Gary
     
    http://www.template.me.uk/responsive-saul/index.php
     
    This particular call to action module displays a checkout message in the header when there are products in the shopping cart prompting the user to finish their order.
     
    Step 1.
    Create a file in catalog/includes/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ class cm_header_call_to_checkout { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function cm_header_call_to_checkout() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE; $this->description = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION; if ( defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS') ) { $this->sort_order = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER; $this->enabled = (MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS == 'True'); } } function execute() { global $PHP_SELF, $cart, $currencies, $HTTP_GET_VARS, $request_type, $currency, $oscTemplate; $content_width = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH; if ($cart->count_contents() > 0) { $call_to_checkout .= '<div class="alert alert-danger text-center call_to_checkout" role="alert">' . sprintf(TEXT_CALL_TO_CHECKOUT, $cart->count_contents()) . '  ' . tep_draw_button(IMAGE_BUTTON_CALL_TO_CHECKOUT, 'fa fa-thumbs-o-up fa-lg', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success') . '</div>'; }else{ } ob_start(); include(DIR_WS_MODULES . 'content/' . $this->group . '/templates/call_to_checkout.php'); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Call to checkout Module', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'True', 'Do you want to enable the call to checkout Box content module?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', '4', 'What width container should the content be shown in?', '6', '1', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER'); } } Step 2.
    Create a file in catalog/includes/modules/content/header/templates called call_to_checkout.php and add the following code to it:
    <div class="header col-sm-<?php echo $content_width; ?>"> <?php echo $call_to_checkout; ?> </div> Step 3.
    Create a file in catalog/includes/languages/english/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE', 'Call to Checkout'); define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION', 'Adds a call to checkout action into the Header Area of your site.'); Step 4.
    Add the following to catalog/includes/languages/english.php
    define('TEXT_CALL_TO_CHECKOUT', '<i class="fa fa-flag fa-lg"></i>  You have %s item(s) in your shopping basket, click to proceed through the checkout'); Then all you need to do is go to your admin and install the module, select the width and the sort order
     
    Hopefully this will give people ideas on how to create further content modules.
     
    Mark
  16. Like
    PupStar got a reaction from Mort-lemur in How to build a content module   
    This brief guide is for anyone who wants to make their own content module.
     
    The code below shows how to make a 'Call to Action' module as inspired by the template made by Gary
     
    http://www.template.me.uk/responsive-saul/index.php
     
    This particular call to action module displays a checkout message in the header when there are products in the shopping cart prompting the user to finish their order.
     
    Step 1.
    Create a file in catalog/includes/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ class cm_header_call_to_checkout { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function cm_header_call_to_checkout() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE; $this->description = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION; if ( defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS') ) { $this->sort_order = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER; $this->enabled = (MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS == 'True'); } } function execute() { global $PHP_SELF, $cart, $currencies, $HTTP_GET_VARS, $request_type, $currency, $oscTemplate; $content_width = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH; if ($cart->count_contents() > 0) { $call_to_checkout .= '<div class="alert alert-danger text-center call_to_checkout" role="alert">' . sprintf(TEXT_CALL_TO_CHECKOUT, $cart->count_contents()) . '  ' . tep_draw_button(IMAGE_BUTTON_CALL_TO_CHECKOUT, 'fa fa-thumbs-o-up fa-lg', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success') . '</div>'; }else{ } ob_start(); include(DIR_WS_MODULES . 'content/' . $this->group . '/templates/call_to_checkout.php'); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Call to checkout Module', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'True', 'Do you want to enable the call to checkout Box content module?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', '4', 'What width container should the content be shown in?', '6', '1', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER'); } } Step 2.
    Create a file in catalog/includes/modules/content/header/templates called call_to_checkout.php and add the following code to it:
    <div class="header col-sm-<?php echo $content_width; ?>"> <?php echo $call_to_checkout; ?> </div> Step 3.
    Create a file in catalog/includes/languages/english/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE', 'Call to Checkout'); define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION', 'Adds a call to checkout action into the Header Area of your site.'); Step 4.
    Add the following to catalog/includes/languages/english.php
    define('TEXT_CALL_TO_CHECKOUT', '<i class="fa fa-flag fa-lg"></i>  You have %s item(s) in your shopping basket, click to proceed through the checkout'); Then all you need to do is go to your admin and install the module, select the width and the sort order
     
    Hopefully this will give people ideas on how to create further content modules.
     
    Mark
  17. Like
    PupStar got a reaction from Mort-lemur in How to build a content module   
    This brief guide is for anyone who wants to make their own content module.
     
    The code below shows how to make a 'Call to Action' module as inspired by the template made by Gary
     
    http://www.template.me.uk/responsive-saul/index.php
     
    This particular call to action module displays a checkout message in the header when there are products in the shopping cart prompting the user to finish their order.
     
    Step 1.
    Create a file in catalog/includes/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ class cm_header_call_to_checkout { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function cm_header_call_to_checkout() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE; $this->description = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION; if ( defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS') ) { $this->sort_order = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER; $this->enabled = (MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS == 'True'); } } function execute() { global $PHP_SELF, $cart, $currencies, $HTTP_GET_VARS, $request_type, $currency, $oscTemplate; $content_width = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH; if ($cart->count_contents() > 0) { $call_to_checkout .= '<div class="alert alert-danger text-center call_to_checkout" role="alert">' . sprintf(TEXT_CALL_TO_CHECKOUT, $cart->count_contents()) . '  ' . tep_draw_button(IMAGE_BUTTON_CALL_TO_CHECKOUT, 'fa fa-thumbs-o-up fa-lg', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success') . '</div>'; }else{ } ob_start(); include(DIR_WS_MODULES . 'content/' . $this->group . '/templates/call_to_checkout.php'); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Call to checkout Module', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'True', 'Do you want to enable the call to checkout Box content module?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', '4', 'What width container should the content be shown in?', '6', '1', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER'); } } Step 2.
    Create a file in catalog/includes/modules/content/header/templates called call_to_checkout.php and add the following code to it:
    <div class="header col-sm-<?php echo $content_width; ?>"> <?php echo $call_to_checkout; ?> </div> Step 3.
    Create a file in catalog/includes/languages/english/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE', 'Call to Checkout'); define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION', 'Adds a call to checkout action into the Header Area of your site.'); Step 4.
    Add the following to catalog/includes/languages/english.php
    define('TEXT_CALL_TO_CHECKOUT', '<i class="fa fa-flag fa-lg"></i>  You have %s item(s) in your shopping basket, click to proceed through the checkout'); Then all you need to do is go to your admin and install the module, select the width and the sort order
     
    Hopefully this will give people ideas on how to create further content modules.
     
    Mark
  18. Like
    PupStar got a reaction from Mort-lemur in How to build a content module   
    This brief guide is for anyone who wants to make their own content module.
     
    The code below shows how to make a 'Call to Action' module as inspired by the template made by Gary
     
    http://www.template.me.uk/responsive-saul/index.php
     
    This particular call to action module displays a checkout message in the header when there are products in the shopping cart prompting the user to finish their order.
     
    Step 1.
    Create a file in catalog/includes/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ class cm_header_call_to_checkout { var $code; var $group; var $title; var $description; var $sort_order; var $enabled = false; function cm_header_call_to_checkout() { $this->code = get_class($this); $this->group = basename(dirname(__FILE__)); $this->title = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE; $this->description = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION; if ( defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS') ) { $this->sort_order = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER; $this->enabled = (MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS == 'True'); } } function execute() { global $PHP_SELF, $cart, $currencies, $HTTP_GET_VARS, $request_type, $currency, $oscTemplate; $content_width = MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH; if ($cart->count_contents() > 0) { $call_to_checkout .= '<div class="alert alert-danger text-center call_to_checkout" role="alert">' . sprintf(TEXT_CALL_TO_CHECKOUT, $cart->count_contents()) . '  ' . tep_draw_button(IMAGE_BUTTON_CALL_TO_CHECKOUT, 'fa fa-thumbs-o-up fa-lg', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary', NULL, 'btn-success') . '</div>'; }else{ } ob_start(); include(DIR_WS_MODULES . 'content/' . $this->group . '/templates/call_to_checkout.php'); $template = ob_get_clean(); $oscTemplate->addContent($template, $this->group); } function isEnabled() { return $this->enabled; } function check() { return defined('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS'); } function install() { tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Enable Call to checkout Module', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'True', 'Do you want to enable the call to checkout Box content module?', '6', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Content Width', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', '4', 'What width container should the content be shown in?', '6', '1', 'tep_cfg_select_option(array(\'12\', \'11\', \'10\', \'9\', \'8\', \'7\', \'6\', \'5\', \'4\', \'3\', \'2\', \'1\'), ', now())"); tep_db_query("insert into configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Sort Order', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER', '0', 'Sort order of display. Lowest is displayed first.', '6', '0', now())"); } function remove() { tep_db_query("delete from configuration where configuration_key in ('" . implode("', '", $this->keys()) . "')"); } function keys() { return array('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_STATUS', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_CONTENT_WIDTH', 'MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_SORT_ORDER'); } } Step 2.
    Create a file in catalog/includes/modules/content/header/templates called call_to_checkout.php and add the following code to it:
    <div class="header col-sm-<?php echo $content_width; ?>"> <?php echo $call_to_checkout; ?> </div> Step 3.
    Create a file in catalog/includes/languages/english/modules/content/header called cm_header_call_to_checkout.php and add the following code to it:
    <?php /* $Id$ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2014 osCommerce Released under the GNU General Public License */ define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_TITLE', 'Call to Checkout'); define('MODULE_CONTENT_HEADER_CALL_TO_CHECKOUT_DESCRIPTION', 'Adds a call to checkout action into the Header Area of your site.'); Step 4.
    Add the following to catalog/includes/languages/english.php
    define('TEXT_CALL_TO_CHECKOUT', '<i class="fa fa-flag fa-lg"></i>  You have %s item(s) in your shopping basket, click to proceed through the checkout'); Then all you need to do is go to your admin and install the module, select the width and the sort order
     
    Hopefully this will give people ideas on how to create further content modules.
     
    Mark
  19. Like
    PupStar reacted to Dan Cole in Responsive osCommerce - Bootstrap   
    I think a large part of this it due to the excellent effort @@burt puts forward at getting and keeping the community involved. At this point I think we're just scratching the surface of what can be accomplished as the community gets more and more involved.  IMO we owe a huge thumbs up to Gary. :thumbsup:
  20. Like
    PupStar reacted to burt in Responsive osCommerce - Bootstrap   
    Pretty Login is now done
     
     
     
     
  21. Like
    PupStar reacted to burt in Responsive osCommerce - Bootstrap   
    Pretty Checkout Success is now done
     
     
     
     
  22. Like
    PupStar got a reaction from burt in Responsive osCommerce - Bootstrap   
    @@burt
     
    with regards to a pretty login page
     
    I put this together at the weekend. I created a new template module as well (w00t)
  23. Like
    PupStar got a reaction from burt in Responsive osCommerce - Bootstrap   
    @@burt
     
    with regards to a pretty login page
     
    I put this together at the weekend. I created a new template module as well (w00t)
  24. Like
    PupStar reacted to burt in Responsive osCommerce - Bootstrap   
    Hmm, I'm not seeing the same problem :(
     
    product_reviews.php
    http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.template.me.uk%2F2334bs3%2Fproduct_reviews.php%3Fproducts_id%3D19
     
    product_info.php
    http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Fwww.template.me.uk%2F2334bs3%2Fproduct_info.php%3Fproducts_id%3D19
     
    Let's see if anyone else can do some testing and go from there.
  25. Like
    PupStar reacted to burt in Responsive osCommerce - Bootstrap   
    No need to microdata the overall review.php page in my opinion.
    You want the search engines to hit on the individual products review page.
     
    For the error on the product_info page, this commit:
    https://github.com/gburton/osCommerce-234-bootstrap/commit/2b53ae6cf3e59f4b36cc1c95a6bcabe8ec68a7f9
    should cure it.
×