Jump to content

De Dokta

Members
  • Content count

    329
  • Joined

  • Last visited

  • Days Won

    15

Reputation Activity

  1. Like
    De Dokta got a reaction from Bobber in 234bs - Breadcrumb Separator   
    Hi
     
    add to the user.css:
     
    .breadcrumb > li + li:before {
      content: ">>";
    }
     
    or if you prefer unicode:
     
    .breadcrumb > li + li:before {
      content:"\003E \003E";
    }
     
    J.J.
  2. Like
    De Dokta got a reaction from Bobber in Drop down state selection and 2334bs3   
    Hi Rainer
     
    pls. do what ever you want with the code snippets. :)
     
    J.J.
  3. Like
    De Dokta got a reaction from ce7 in Categories Menu with multiple subs in the header navbar   
    Hi,
     
    I've updated my installation of burts 2334BS to 2.3.4, where it works without any problems.
     
    J.J.
  4. Like
    De Dokta got a reaction from ce7 in Categories Menu with multiple subs in the header navbar   
    Thanks for your feedback. But the main credit goes to gadlol whose code has enabled me to this solution .... :rolleyes:
  5. Like
    De Dokta got a reaction from frankl in Modal Info Popup Layer for osc 2.3.4BS   
    Support Thread for the new content module Modal Info Popup Layer for osCommerce 2.3.4BS
     
    Note: This content Module is for the bootstrap version of oscommerce 2.3.4 only!
     
    Download Link: http://addons.oscommerce.com/info/9204
     
    If you want your customers to take note of certain informations, there is one way to make them aware by using a popup window or a layer. This contrib uses a bootstrap modal for this purpose. When a customer enters the shop the first time, a info popup layer is once laid over the page - regardless on which site the customer enters the shop.
     

    The individual messages can be created via a pop-up manager as plain text, html-text and/or graphics in the admin area.There you can also specify a start and an expiration date for the display of messages.
     

     
    The add-on is designed as content module, which means that no changes to core files (in the frontend) are neccessary. Only in the admin area two files (admin\includes\boxes\tools.php and admin\includes\languages\english.php) must be changed to add a new entry to the tools box.
     
    Tested with bootstrap-gold and FF 35, Google Chrome 37.0.2062.124, Opera 26.0 and IE 8.
     
    Please report any problems here.
     
    J.J.
  6. Like
    De Dokta got a reaction from Denzel in tep_draw_categories_tree finally no recursion just one mysql_query   
    Wow! Where can I give John (gadlol) the deserved 'Like it' for that?
  7. Like
    De Dokta got a reaction from SpicyGirl in Remove categories box Only on Home Page   
    Hi,
     
    look here: http://forums.oscommerce.com/topic/392595-left-column-hidden-only-at-home-page/?p=1668915
     
    If you want to hide only a column box on a certain page look into the box module e.g. bm_categories.php, find the function isEnabled and change it to something like that:
    function isEnabled() {      global $PHP_SELF, $category_depth;      if(($PHP_SELF == 'index.php') and ($category_depth == 'top')) {       $this->enabled = false;       }else{       return $this->enabled;       }     } You can add further conditions to the if statement,  for example ... and !isset($_GET['manufacturers_id']) - what ever you want.
     
    J.J.

     
  8. Like
    De Dokta got a reaction from gvv in Wish List for osC 2.3.4 BS GOLD   
    @@gvv
     
    Yes! For includes/modules/new_products.php e.g. it should be something like this:
     
                          $new_prods_content .= tep_draw_button(TEXT_ADD_WISHLIST, 'glyphicon glyphicon-heart', tep_href_link('wishlist.php', tep_get_all_get_params(array('action')) . 'action=add_to_wishlist&products_id=' . $new_products['products_id']), NULL, NULL, 'btn-default btn-sm');
     
    Add it where you want the wishlist button to appear. And in other modules similar....
     
    J.J.
     
  9. Like
    De Dokta got a reaction from ce7 in table edit instructions addon Invoice Editor 1.0 / 8885   
    Hi
     
    1. Definitions which you don't find in the Sqls you find in the appropriate language files - in this case admin/includes/your language/invoice.php and packingslip.php.
     
    2. Have you entered the tables in admin/includes/database_tables.php?
     
    3. Depends on what you want to change. But in principle correct!
     
    J.J.
  10. Like
    De Dokta got a reaction from ce7 in table edit instructions addon Invoice Editor 1.0 / 8885   
    @@ce7
     
    Hi,
     
    it's German. :D
     
    If you don't understand the meaning of any definition in the files look into invoice_en.sql where you'll find these definitions and their meaning in English.
     
    J.J.
  11. Like
    De Dokta reacted to auzStar in Faster login with bootstrap modal   
    More changes.... :P   
     
    Continuing from my previous post, I've changed this so that now it's easier to install, no code changes required.
     
    I guess this started off as just a simple login modal for checkout shipping and navbar login, but I thought it would be good to get the login modal to popup for any link/button that requires the customer to login.
     
    Have now included all links that require login (let me know if I've missed any). Page snapshot is still set via javascript/ajax pre login modal appearing.
     
    Works like the standard login in that you are re-directed to the page you were trying to access before logging in, ie write review, checkout etc.
    When login via the navbar you stay on the current page, unless the current page is logoff, create account or the standard login page, in which case you get re-directed to index. The page snapshot also works for the "Login with PayPal" if used.
     
    There are major differences with this version so first you need to undo any previous changes already made, since the modifications to the links are no longer required. (Make sure you uninstall any previous login modal module if installed and remove the files). More info in the download package.
     
    Note: I have applied the login modal to work with the original navbar, where Login and the other account links appear under "My Account".
     
    features:
    popup login modal can be turned on/off
    login modal size can be selected normal/large
     
    links that activate the login modal when customer is not signed in are:
    login - in navbar->My Account->Login, footer, index page and create account page
    my account - in navbar->My Account->My Account and header buttons
    other account links - in navbar->My Account (My Orders, My Address Book, My Password)
    checkout - in navbar, header buttons & shopping cart
    account notification and product notifications in the product notifications box module
    tell a friend in the Product Social Bookmarks box module
    write review on the product reviews page
    and if installed, write testimonial on the testimonials page and in the testimonials box module
    (customer testimonials is currently commented out in the module template javascript section)
     
    Tested with SSL.
    login_modal_module_v2.zip
  12. Like
    De Dokta reacted to BrockleyJohn in Addon Development - Best Practices   
    Yes @@burt - especially as I already had a style overriding it there. Now it's

    <style type="text/css"> @[member=import] url("ext/colorbox/colorbox.css"); #cboxTitle{font-weight:bold; font-size:large; color:#000000;}</style> <div class="col-sm-<?php echo $content_width . ' ' . MODULE_CONTENT_PRODUCT_INFO_GALLERY_CAPTION_CONTENT_ALIGN . ' ' . MODULE_CONTENT_PRODUCT_INFO_GALLERY_CAPTION_CONTENT_VERT_MARGIN . ' ' . MODULE_CONTENT_PRODUCT_INFO_GALLERY_CAPTION_CONTENT_HORIZ_MARGIN; ?> productsimages"> <?php echo $gallery_output; ?> </div> works a treat
  13. Like
    De Dokta got a reaction from sihi in Latest News Rotator Multilingual 1.0 BS   
    Hi
     
    I made a new version of my Latest News Multilingual Addon (http://addons.oscommerce.com/info/9147) as content module for BS-Gold.
     
    It displays news in a sliding or fading carousel which you can install on the index page or in the header area.

    With the exception of the index.php, which by default has (still) no hook, no core files must be changed.
     
    Download here: http://addons.oscommerce.com/info/9314
    Demo here: http://www.video-stuff.de/demo/bootstrap
     
    Pls. report any problems, bugs etc. here.
     
    J.J.
  14. Like
    De Dokta got a reaction from raiwa in State Selector for BS   
    Artisan Foundry, on 12 May 2015 - 21:20, said:
     
    There's a <div class="form-group"> in address_book_details.php. Change it to <div class="form-group has-feedback"> and the asterix will be in the right place.
     
    J.J.
  15. Like
    De Dokta reacted to raiwa in Purchase without account for 2.3.4 and BS2334   
    @@De Dokta,
     
    Hello, just installed the PWA add-on in a 2.3.4 BS store. All fine except there are some cosmetic updates from post BS Gold versions which may be good to update in account_pwa.php. These changes are applied in the actual 2.3.4BS master version.
     
    1. The classes "col-xs-3" and "col-xs-9" should be changed to "col-sm-3" and "col-sm-9" for stacked view of labels and input fields on xs.
    2. The correct input types "e-mail" and "phone" should be added to the respective input fields for easier input on mobile devices.
    Example:
    <div class="form-group has-feedback"> <label for="inputEmail" class="control-label col-sm-3"><?php echo ENTRY_EMAIL_ADDRESS; ?></label> <div class="col-sm-9"> <?php echo tep_draw_input_field('email_address', NULL, 'required aria-required="true" id="inputEmail"', 'email'); if (tep_not_null(ENTRY_EMAIL_ADDRESS_TEXT)) echo '<span class="help-block">' . ENTRY_EMAIL_ADDRESS_TEXT . '</span>'; ?> </div> </div> Otherwise excellent contribution
     
    regards
    Rainer
  16. Like
    De Dokta got a reaction from Tsimi in Wish List for osC 2.3.4 BS GOLD   
    Hi
     
    yes it's possible with a little trick! :rolleyes:
    In includes/modules/product_listing.php somewhere around the buttons area add (depends on where you want to have the wishlist button):
    $prod_list_contents .= '       <div class="col-xs-6">' . tep_draw_form('cart_quantity', tep_href_link('product_info.php', tep_get_all_get_params(array('action')) . 'action=add_product')) . tep_draw_hidden_field('products_id', $listing['products_id']) . tep_draw_button(TEXT_ADD_WISHLIST, 'glyphicon glyphicon-heart', null, 'primary', array('params' => 'name="wishlist" value="wishlist"')) . '</form ></div>'; J.J.
     
  17. Like
    De Dokta got a reaction from Tsimi in Wish List for osC 2.3.4 BS GOLD   
    @@Tsimi
     
    Yes, you are right! :-
    The only way to add a wishlist button to the product_listing seems to be to define a new case 'add_to_wishlist' in application_top:
     
    Right before:  case 'notify' :         if (tep_session_is_registered('customer_id')) {
    insert:
    /*Wish List */      case 'add_to_wishlist' : if (isset($_GET['products_id'])) {                                if (tep_has_product_attributes($_GET['products_id'])) {                                tep_redirect(tep_href_link('product_info.php', 'products_id=' . $_GET['products_id']));                                 } else {                                $wishList->add_wishList($_GET['products_id'], $wishList->get_quantity($_GET['products_id'])+1);                                }                               }                               tep_redirect(tep_href_link('wishlist.php', tep_get_all_get_params($parameters)));                               break; /* /Wish List End */                          And then in product_listing add something like:       
    $prod_list_contents .= '       <div class="col-xs-6">' . tep_draw_button(TEXT_ADD_WISHLIST, 'glyphicon glyphicon-heart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_to_wishlist&products_id=' . $listing['products_id']), NULL, NULL, 'btn-default btn-sm') . '</div>'; Works for me on bs-gold........
     
    J.J.
  18. Like
    De Dokta got a reaction from Tsimi in Wish List for osC 2.3.4 BS GOLD   
    @@Tsimi
     
    Yes, you are right! :-
    The only way to add a wishlist button to the product_listing seems to be to define a new case 'add_to_wishlist' in application_top:
     
    Right before:  case 'notify' :         if (tep_session_is_registered('customer_id')) {
    insert:
    /*Wish List */      case 'add_to_wishlist' : if (isset($_GET['products_id'])) {                                if (tep_has_product_attributes($_GET['products_id'])) {                                tep_redirect(tep_href_link('product_info.php', 'products_id=' . $_GET['products_id']));                                 } else {                                $wishList->add_wishList($_GET['products_id'], $wishList->get_quantity($_GET['products_id'])+1);                                }                               }                               tep_redirect(tep_href_link('wishlist.php', tep_get_all_get_params($parameters)));                               break; /* /Wish List End */                          And then in product_listing add something like:       
    $prod_list_contents .= '       <div class="col-xs-6">' . tep_draw_button(TEXT_ADD_WISHLIST, 'glyphicon glyphicon-heart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_to_wishlist&products_id=' . $listing['products_id']), NULL, NULL, 'btn-default btn-sm') . '</div>'; Works for me on bs-gold........
     
    J.J.
  19. Like
    De Dokta reacted to Tsimi in Wish List for osC 2.3.4 BS GOLD   
    @@gvv @@De Dokta
     
    Thanks for the code J.J. :thumbsup:
    Be aware that a button inside the product listing works only if the product doesn't have attributes.
    Other solution would be to build in the same redirect to the application_top.php for thew wishlist button, similar to the buy now button.
    If attributes -> redirect to product_info.php else -> add to wishlist.
  20. Like
    De Dokta got a reaction from Tsimi in Wish List for osC 2.3.4 BS GOLD   
    Hi
     
    yes it's possible with a little trick! :rolleyes:
    In includes/modules/product_listing.php somewhere around the buttons area add (depends on where you want to have the wishlist button):
    $prod_list_contents .= '       <div class="col-xs-6">' . tep_draw_form('cart_quantity', tep_href_link('product_info.php', tep_get_all_get_params(array('action')) . 'action=add_product')) . tep_draw_hidden_field('products_id', $listing['products_id']) . tep_draw_button(TEXT_ADD_WISHLIST, 'glyphicon glyphicon-heart', null, 'primary', array('params' => 'name="wishlist" value="wishlist"')) . '</form ></div>'; J.J.
     
  21. Like
    De Dokta got a reaction from ArtcoInc in Addon Development - Best Practices   
    And in another scenario where the module doesn't create a new table but alters an exitisting table by adding a new column, you can check if this column already exists (and avoid an error message) with:
          if (tep_db_num_rows(tep_db_query("SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='". DB_DATABASE . "' AND TABLE_NAME='customers' AND COLUMN_NAME LIKE 'customers_guest'")) != 1 ) {       tep_db_query("alter table customers add column `customers_guest` INT(1) NOT NULL DEFAULT '0' AFTER `customers_newsletter`");       }
  22. Like
    De Dokta got a reaction from ArtcoInc in Addon Development - Best Practices   
    And in another scenario where the module doesn't create a new table but alters an exitisting table by adding a new column, you can check if this column already exists (and avoid an error message) with:
          if (tep_db_num_rows(tep_db_query("SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA='". DB_DATABASE . "' AND TABLE_NAME='customers' AND COLUMN_NAME LIKE 'customers_guest'")) != 1 ) {       tep_db_query("alter table customers add column `customers_guest` INT(1) NOT NULL DEFAULT '0' AFTER `customers_newsletter`");       }
  23. Like
    De Dokta reacted to Tsimi in Addon Development - Best Practices   
    @@ArtcoInc and I talked about this tables and database stuff in the chat the other day when it suddenly hit me.
    There is an addon (commercial) that uses such a feature.
    There are radio buttons false/true where you can choose if you want to drop the tables when removing the module or not.
    This option can be changed at anytime while the module is installed.
     
    So I asked the commercial addon creator if it would be possible to share that part of code and he said yes. (w00t)
    So I want to hereby thank @@gadlol for allowing me to share this following code here with you guys. Thank you John! :thumbsup:
     
    For testing purpose I implemented it to the reviews module.
    Changes are between // BOF TSIMI and // EOF TSIMI
     
    http://pastebin.com/RH8Xky0X
     
    Have a go and say what you think....
  24. Like
    De Dokta reacted to burt in Addon Development - Best Practices   
    I just finished up a modification that adds a new page into the admin area, at the top of the page I did this:
     
     
    if (tep_db_num_rows(tep_db_query('SHOW TABLES LIKE "products_slave"')) != 1) {   tep_db_query("CREATE TABLE products_slave (id int NOT NULL auto_increment, products_id int NOT NULL, links varchar(255) NOT NULL, PRIMARY KEY (id)) CHARACTER SET utf8 COLLATE utf8_unicode_ci;"); }  
    The user uploads the new page, opens it in his browser.  The table is created if it does not already exist.
     
    If an addon dev is creating a module (rather than a full admin page), then it is as easy; in the install function of said module the exact same code can be used.
  25. Like
    De Dokta got a reaction from gvv in Wish List for osC 2.3.4 BS GOLD   
    If you want to remove the add-to-cart button but use the wishlist function, keep the hidden field intact.
     
    <div class="col-xs-6 text-right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'glyphicon glyphicon-shopping-cart', null, 'primary', null, 'btn-success'); ?></div>
×