Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. supercheaphobb

    Frozen BS customer side customisation

    Finally got it to work and put it in put it in user.css now to go give it a better name #test > li > a { padding: 5px 15px; }
  3. emahajan

    Paypal Express 3.1 not working properly.(Sandbox)

    Jack, As I am using one page checkout into my shop, can you point out how it can be done?
  4. JcMagpie

    Frozen BS customer side customisation

    Yes ­čśŐ css like this, I will get a lot of flack for this I'm sure. Best to not mix it in the html, add to start or end of file. Or if you wish put the css in your user.css and add some text to remember what it's for. I personaly use the templete files as custom files and keep css relavent only to that add-on in that file. Other will disagree with this approach, so stick it in the user.css if you like. <div class="panel panel-default"> <div class="panel-heading"><?php echo MODULE_BOXES_CATEGORIES_BOX_TITLE; ?></div> <?php echo $category_tree; ?> </div> <style> i#test { padding: 5px 15px; } </style>
  5. So - to feed back. With help from Raiwa, I've achieved what I wanted. Static horizontal menu at top appears all the time. When you click on a category then a vertical sub-menu appears just showing the level in the category you're at. I created a new module for this, but you don't have to. You could just amend bm_categories.php and the template file (tpl_bm_categories.php). Changed the function execute() to: function execute() { global $oscTemplate, $cPath, $current_category_id; $OSCOM_CategoryTree = new category_tree(); $OSCOM_CategoryTree->setCategoryPath($cPath, '<strong>', '</strong>'); // sets cateogory tree to current level only $OSCOM_CategoryTree->setRootCategoryID((int)$current_category_id); $OSCOM_CategoryTree->setParentGroupString('<ul class="nav nav-pills nav-stacked">', '</ul>', true); // defined category title - to call in template bm_categories $category_title = $OSCOM_CategoryTree->getData($current_category_id, 'name'); $category_tree = $OSCOM_CategoryTree->getTree(); ob_start(); include('includes/modules/boxes/templates/tpl_' . basename(__FILE__)); $data = ob_get_clean(); $oscTemplate->addBlock($data, $this->group); } Then I amended the template file - to only show this when a category has been selected. <?php if (!empty($category_title)) {?><div class="panel panel-default bm-nav-categories"><div class="panel-heading"><?php echo MODULE_BOXES_CATEGORIES2_BOX_TITLE; ?> <?php echo $category_title; ?></div> <?php echo $category_tree;?></div><?php } else {return null;} ?> Of course styles etc may be different on others versions. But it seems to work, so might be helpful to others. Thanks for your help Raiwa!
  6. supercheaphobb

    Frozen BS customer side customisation

    So template file you mean public_html/includes/modules/boxes/templates/categories.php ? <div class="panel panel-default"> <div class="panel-heading"><?php echo MODULE_BOXES_CATEGORIES_BOX_TITLE; ?></div> <style> i#test { padding: 5px 15px; } </style> <?php echo $category_tree; ?> </div>
  7. MrPhil

    PayPal App v5.018 Log In with PayPal is now dead

    At this point, I see no reason to carry this further, here. If you think there are security problems, feel free to start a new topic/thread and continue that part of the discussion there. Perhaps someone more familiar with the work and reasons for changing to the short forms ( @burt ?) could speak to this. Has Pete found an area of legitimate concern, or is he mistaken? In places where these superglobals could potentially be used to inject nasties, I was under the impression that cleanup was done on a case-by-case basis rather than globally. Of course, this does increase the chance that some case will be overlooked! Are "magic quotes" still around? I thought I heard about their being withdrawn. Certainly, we should always be on the lookout for places where $_* could be used to inject malicious code. Should cleanup be restricted to places where it could actually be used to do something bad (in HTML sent back to the browser, in database fields, etc.)? Is there such a thing as a universal cleanup that could be done?
  8. Today
  9. supercheaphobb

    Frozen BS customer side customisation

    Ok I cleaned up the line in search.php and it now reads <div class="panel-footer"><a href="<?php echo tep_href_link('advanced_search.php') . '"><strong>' . MODULE_BOXES_SEARCH_BOX_ADVANCED_SEARCH . '</strong></a>'; ?></div> So with out the <?php echo MODULE_BOXES_SEARCH_BOX_TEXT . '<br /> it produces the desired result Off to look at bm_categories.php
  10. JcMagpie

    Frozen BS customer side customisation

    Ok find public_html/includes/modules/boxes/bm_categories.php make this change to line 40, $OSCOM_CategoryTree->setParentGroupString('<ul class="nav nav-pills nav-stacked" id="test">', '</ul>', true); Then add css to template file like so, <style> i#test { padding:20px; } </style>
  11. JcMagpie

    Frozen BS customer side customisation

    This is not recomended as It might produce unexpected results and/or errors without end tag. The cat's I'm n0t sure is the honist answer as I have never made any changes to stock cat's but yes you need to find the file producing the html code and add the id, will be in the function or in class just have to have a poke around. More trouble than it's worth to be honist.
  12. supercheaphobb

    Frozen BS customer side customisation

    @JcMagpie Ok that is a very handy bit of info and something new I have just learned. The search box gets smaller when I remove the from <br /> (line break) from "<?php echo MODULE_BOXES_SEARCH_BOX_TEXT . '<br />" in public_html/includes/modules/boxes/templates/search.php So this issue is now resolved I will apply your hint to categories just to reduce the padding a little, but public_html/includes/modules/boxes/templates/categories.php only deals with the heading of the categories box not the category listings I have been unable to find the file the produces the categories list, can you please assist. So once I find the file I change this <ul class="nav nav-pills nav-stacked"> to <ul class="nav nav-pills nav-stacked" id-"mycat"> and the css would be .nav > li > a #mycat position: relative; display: block; padding: 10px 15px; }
  13. Does any of the affected sites and orders use any sort of discount module/functionality? i.e discount codes/coupons? I've seen this happen before due to the way tax is calculated and rounding in the store versus how PayPal calculates tax and discounts. When the two figures don't match up during the callback (usually 1pence/1cents difference) the store will not accept the result and the process fails, no emails sent, baskets not cleared etc.
  14. Sure understand your problem, add-on was made for someone who did not wish to have cart active at all so button was replaced with dead button. So to make active to add to cart use this, mod as required. You are basicly adding an active button again. if ( tep_get_products_stock($listing['products_id']) > 0 ) { $prod_list_contents .= tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'fa fa-shopping-cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . (int)$listing['products_id']), NULL, array('params' => 'data-has-attributes="' . ((tep_has_product_attributes((int)$listing['products_id']) === true) ? '1' : '0') . '" data-in-stock="' . (int)$listing['in_stock'] . '" data-product-id="' . (int)$listing['products_id'] . '"'), 'btn-success btn-product-listing btn-buy'); } else { $prod_list_contents .= tep_draw_button(IMAGE_BUTTON_OUT_OF_STOCK, 'fa fa-shopping-cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . (int)$listing['products_id']), NULL, array('params' => 'data-has-attributes="' . ((tep_has_product_attributes((int)$listing['products_id']) === true) ? '1' : '0') . '" data-in-stock="' . (int)$listing['in_stock'] . '" data-product-id="' . (int)$listing['products_id'] . '"'), 'btn-danger btn-product-listing btn-buy'); You will need to do the same in product_info if you modded that.
  15. Hi @JcMagpie hoping you don't get sick of all my questions I removed disabled from $prod_list_contents .= tep_draw_button(IMAGE_BUTTON_OUT_OF_STOCK, 'fa fa-ban', NULL, NULL, NULL, 'btn-danger btn-product-listing btn-buy'); I can click the button but is does not do anything complete code snippet below from Frozen BS3 if ( tep_get_products_stock($listing['products_id']) > 0 ) { $prod_list_contents .= tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'fa fa-shopping-cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . (int)$listing['products_id']), NULL, array('params' => 'data-has-attributes="' . ((tep_has_product_attributes((int)$listing['products_id']) === true) ? '1' : '0') . '" data-in-stock="' . (int)$listing['in_stock'] . '" data-product-id="' . (int)$listing['products_id'] . '"'), 'btn-success btn-product-listing btn-buy'); } else { $prod_list_contents .= tep_draw_button(IMAGE_BUTTON_OUT_OF_STOCK, 'fa fa-ban', NULL, NULL, NULL, 'btn-danger btn-product-listing btn-buy');
  16. JcMagpie

    Frozen BS customer side customisation

    Oh yes to answer you main question to edit class look for the template file used so for box search you need public_html/includes/modules/boxes/templates/search.php change <div class="panel panel-default"> to <div class="panel panel-default" id-"yourid">
  17. JcMagpie

    Frozen BS customer side customisation

    example, we add the id="test" to one section and change a color, you see it affects only one box and only one part of that box.
  18. JcMagpie

    Frozen BS customer side customisation

    The answer to both you questions is the same. You are using CE Boostrap 3 , It uses stock bootstrap classes for both these box's so to change search box and cat's you will need to edit core files. You don't have much to play with as far as box size as it's set by Bootstrap, Both use the class "<div class="panel panel-default"> and this is set by boostrap so to make changes you will need to add ID <div id="catsfix" class="panel panel-default"> or <div id="searchboxfix" class="panel panel-default"> You can then add css using the id and change margin and padding to some extent. The whole point of Boostrap is these stock classes are designed to be used accross all devices sizes , I would not recomend changing these sock margins and paddings unless you have to.
  19. burt

    Frozen BS customer side customisation

    @supercheaphobb before making too many customisations, know that things are (usually) done for good reason. In the case of the "padding" in the categories box (and elsewhere)...that reason is "tap targets" which is very important to users of small devices...
  20. supercheaphobb

    Frozen BS customer side customisation

    Thanks @JcMagpie But that's content, I am referring to a box module and also height not width Version is Frozen BS - osCommerce Online Merchant v2.3.4.1 CE Clicking on the highlight all elements also show the below will be affected Can you please explain how to add ID to limit change to one section.
  21. JcMagpie

    Frozen BS customer side customisation

    1) 2) Need to know which version you are using and if it's stock cat's but, If change affects more than this then you need to add ID to limit change to one section.
  22. supercheaphobb

    Frozen BS customer side customisation

    Thanks @JcMagpie but as asked in my question what ´╗┐I need to know is where is this ´╗┐located so I can ´╗┐edit it and if edited ´╗┐will it only apply to ´╗┐the search ´╗┐´╗┐´╗┐box ´╗┐ ´╗┐Not sure what to say here - using inspect element seems to show .nav > li as the .css for categories but if you could give me the correct css name for this area I will try that Many thanks these options look promising´╗┐
  23. emahajan

    Paypal Express 3.1 not working properly.(Sandbox)

    Thank you Jack, Let me try with the shared Paypal App in the provided url.
  24. JcMagpie

    Frozen BS customer side customisation

    1) simlpe way reduce the content width. 2) Very simple limit the css changes to the cat's class only. If this is not a class on it's own just add and ID to the class and use that to limit css, stuck pm me link and do test change. 3) Use one of the many links add-on's available or simply copy existing box and rename it. JcM Custom Store Info Box CEBS4/3 Very Simple Navbar links menu
  25. Did you get the "deposit payment module for osCommerce Online Merchant v2.2" to work on a BS version?
  26. Hi all, I can't find how to make the search box smaller, I have removed the excess text ( Use keywords to find the product you are looking for. ) but now need to make the box shorter Its div.panel-footer and the details are 245.167├Ś61 - what I need to know is where is this located so I can edit it and if edited will it only apply to the search box Categories box - I want to reduce the padding between the categories. This seems to be .nav > li > padding: 10px 15px; <- but when I reduce the padding it then stuffs up the text on the nav bar Is this the wrong label to edit? or how do I make the spacing between the categories smaller without stuffing up another part of the site Documents Box - I am in need of the documents box to allow customers to find lost product manuals and spare parts list <- is there one that will work with Frozen BS else I guess I could put in a hyperlink to a dropbox folder If I have to go the route of hyperlinks, how do I duplicate the "Information Box" module but call it a "Documents Box" Thanks Troy
  27. As I do not know which PWA version you are using, it's difficult to give exact advice. If you remove the hook call in checkout_procerss.php, the order confirmation e-mail will not be modified and still contain the link to the order in the customers account. This doesn't make sense for guest orders. If you are using PWA 3 series, the hook call is that one you posted. For the 2.x series the hook call is different. Please use the version for your store and follow exactly the instructions. Your other modifications are up to you. I'm sure that everything works correct in a correct installation for the correct version. Please consider that PWA is out since years and used in many shops. No one reported the problems you have until now. It makes sense to keep the guest orders flagged even the customer opts in to create a regular account. Shop owners like to keep track on which orders have been made with gueat checkout. This modification is up to you.
  1. Load more activity
×