Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by 14steve14

  1. I want to see what the index page looks like with full width buy and view buttons. Lots of sites I look at now have this feature. I know it will mean altering core code. I also know I have several files to alter plus others addons that I have added. I have already added a gap between the two buttons and centred them hence a few minor code differences. This is the code that currently positions the buttons in the boxes. <div class="btn-group" role="group"> <?php echo tep_draw_button(IS_PRODUCT_BUTTON_VIEW, '', tep_href_link('product_info.php', tep_get_all_get_params(array('action', 'products_id', 'sort', 'cPath')) . 'products_id=' . (int)$card_products['products_id']), NULL, NULL, 'btn-info btn-product-listing btn-view mx-1') . PHP_EOL; $has_attributes = (tep_has_product_attributes((int)$card_products['products_id']) === true) ? '1' : '0'; if ($has_attributes == 0) echo tep_draw_button(IS_PRODUCT_BUTTON_BUY, '', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'products_id', 'sort', 'cPath')) . 'action=buy_now&products_id=' . (int)$card_products['products_id']), NULL, array('params' => 'data-has-attributes="' . $has_attributes . '" data-in-stock="' . (int)$card_products['in_stock'] . '" data-product-id="' . (int)$card_products['products_id'] . '"'), 'btn-warning btn-product-listing btn-buy ml-3') . PHP_EOL; ?> </div> I have changed the first line to be <div class="btn-group d-flex" role="group"> Which makes the single buttons full width, which is good, or spreads the two buttons equally across the box, but where to put the break to get one above the other. I have tried all sorts and nothing seems to work. Is there a rights way to achieve this. Edit. Forgot to add using Phoenix version but code looks similar to other earlier versions.
  2. Don't you ever shut up and not have the last word.. I will ask @burt or any other other mods to remove all your irrelevant posts as its doing nothing for this thread and will only stop others finding the information they are looking for. Hopefully it will be deleted from where I posted the image near the top.
  3. For those that cannot work out where the buttons are by looking at the images, they are in the product cards modules that are shown on the index page. Because it's on the index page that means that the file can be found in the index section of the content modules. As its altering the design, the template file is the one to alter. There are other similar files in the index nested content block and also just in the includes folder. There are also similar display layouts in some addons such as recently viewed, also purchased, cross sell addons and there must be more. Hopefully that answers those that need the additional direction. I have no plans to release the full code as it's best not to alter the core code, and I am looking into adding to the user.css files to create the same effect which will save the hassle of changing core code files. Matter closed or post will be deleted or moderated to remove the off topic posts.
  4. Well copy the code that is there. I posted the code for the buttons I had and the way to solve it was posted so the way to achieve the look of the buttons is there already. Reading the bootstrap pages helped me figure out how to space the buttons using padding. It also helped be get the buttons to equally spread across the full width of the content box. What it didn't help with was how to alter the osc core code. In fact just buy using one extra bit that I could not figure out where to place and it did what I wanted. After trying it on two different lines I decided against the idea and put it back to what I already had, so the code is already posted.
  5. For what purpose? That page uses mostly standard code with a few additions to create centring and padding, and possible a bit of a margin in places. It is something specific that I wanted on my site. All the information can be found by reading and learning about BS and the different parts and shortcuts available. It could also be done by changing the user.css files but it was easier when testing to modify the core code. The only trouble with modifying the core code it needed lots of files changed where as it would only take a few changes to the css and the same effect can be achieved on all pages that use that code. All that information on bootstrap can be found here https://getbootstrap.com/. Thanks. Its getting there.
  6. For now have made a decision. No doubt it will change later. Changed it to look like this. The button widths now define the width of the module boxes now that the border has been removed (actually changed to white in the user.css file) It looked a bit silly when the buttons were stacked and some products had one button and others two. Thank @burt and @JcMagpie for your help and guidance. Now just got all the other files to change so they all look the same.
  7. Many thanks to both of you. Once I have finished getting orders ready I will have a look and see what works best. I know this is a bit cheeky, but wouldnt it be good if those product boxes/cards were modular. Just a thought.
  8. People have to learn to accept that not even Phoenix is standing still any longer. Oscommerce did that for many years and before forward movement it was considered a laughing stock and dead in the water. With Garys input and the help of those that want to see it advance, everyone is getting a better code base. Addons can now be installed in a few clicks rather than a whole lot of manual code changes. Updating the store code is again very simple, and takes a few minutes. If you want old and outdated use an old and outdated version. Stop thinking what was, and start thinking what could be.
  9. 14steve14

    Vendor Login

    Are there not already addons that allow multiple admin users. I seem to remember that this subject has arisen several times. The only thing that will need fixing is a way to split the payments between accounts without the main site owner being liable for addition personal and business taxes. I can see a potential use for something like this on my site a its hobby re;lated and people love selling what they own, but it is something that is way off in the distant time for now.
  10. Without that money the core code for oscommerce would not be changing. Its a shame that not everyone is behind moving the project forward and are out to spoil what some are working towards. But never mind, I fully understand that some people are like that, and that they, not necessarily you Zahid, hold a grudge as they are excluded from the 'club' and don't want to help improve the core code. That's their choice of course but don't run down and insult those that want to help, and don't undermine the work of those that are working to improve the code by offering free code to those that do support. It will only drive a wedge between everyone and cause a split so that those on this forum will not benefit.
  11. Gary asked Henry to do some coding but after waiting for a long time and taking a lot of abuse from henry in one of his drunken moments, nothing got done, and that was henry's fault and no one else's. Henry talked the talked, said that he could do lots but did nothing. There is a lot more to that story but I wont go into it here. No doubt he will come back here now under yet another username and start the abuse again. As for the boostrapped admin that shetch did, I think it was poorly coded so went no further. if it was good you would think that he or someone else would have continued with the development, but nothing has happened there. There could be an opportunity for someone to restart it again.
  12. Just had a similar problem installing a new copy of I found this thread. I didnt notice the hand stuff when installing which is probably my fault.
  13. 14steve14

    tell a friend

    Tell a Friend got removed from the latest versions of Phoenix. It has always been considered a security risk and when Gary asked, most said they never used it or had it turned off, so it got removed. You may need to look through a Phoenix version before to find the relevant code and add it back into your version. You may also need some form of protection on the form as its a way for people to use as spam and other nasties as Jack says.
  14. 14steve14

    shipping cost values

    I suggested that as the first reply to your question, so why didn't you do it then. You could have saved yourself a lot of trouble.
  15. 14steve14

    if this bundle then that help

    Gary released a products bundle module in one of his latest 28days of code. Could be worth asking him about that.
  16. 14steve14

    shipping cost values

    The money is the stores currency. So euros or GBP it makes no different its the way they are entered that you are interested in. The 0.83 could be cents, euros or pounds. It would be 0.83 of a euro. One Euro will be wrote as 1.0 or even just 1. Again the weight makes no difference as nowhere in your store does it require a specific weight entry. If your shippers charge you in pounds rather in in kilogrammes use pounds. All my shippers use kilogrammes. but you have to figure out and stay consistent with the way you enter the weights throughout your store. Again 1 can be either 1kg or one pound, its what comes after the decimal point that will make the difference.. What have you tied so far. Post how you have entered something in the shipping section to calculate the costs and may be I could see where you are going wrong.
  17. 14steve14

    help what version

    It used to before the community edition. Phoenix now shows the correct version.
  18. 14steve14

    shipping cost values

    Here is how I enter it in my shipping modules. 0.1:0.83,0.25:1.32,0.50:1.72,0.75:2.33,1:3.00,2:4.05, The first 0.1 is 100g so if you want 20g it will need to be 0.02 and 90g will need to be 0.09 the next 0.83 is the cost in GBP that's 83p And so on. The 0.25 is 250g eventually getting to 2 which is 2kg Hopefully that makes sense. You will need to write yours as 0.02:0.91,0.09:1.82, and continue adding the weight and the cost separated by a : I did also change the weight in the database to be something like decimal(5,3) wherever weight is mentioned (mainly product wieght), if its not already that so you get the correct places after the decimal point. 5:3 is five places before the decimal point and three after. I think I seem to remember that in standard osc it may only be 5:2.
  19. I will try using the postcode in the query but I think it may throw some weird results as I know I have some customers who are neighbours. I will let you know how I get on so thanks for the suggestion.
  20. Before I upload all my customer data to a new version of Phoenix, I am having a bit of a clear out of old and inactive customers. The inactive customers was easy as there was an addon ( I deleted over 800 customers who have never bought anything going back 5 years). Finding duplicate customers is proving to be a bit harder. Customers sometimes cant get the forgotten password link to do anything so create another account using a different email address, and its these that I want to find. Once found I have the addon to link both accounts together. Does anyone know of an addon or a way to check database entries for the same 1st line of the address. Once I have the customers details I can manually check the rest is the same.
  21. Cheers Zahid that worked a treat. Not as many as I thought there would be. Most are where ustomers have duplicated addresses in their accounts. There are only about 8 that actually have duplicate accounts. Thanks for your help.
  22. Only a few nights ago I created a list of current modules used on my site that would need updating and this was onre of the ones listed. Many thanks @JcMagpie Zahid. Saved me the bother of even looking at it.
  23. 14steve14

    Improvement proposal for OSC.

    I think language packs for shop and admin side should be addons and not part of core. There are too many languages to include otherwise. Some have already translated languages and uploaded them to the addons area so if they have not done all the admin then they eoither need to be told, or someone needs to update the package. I also think that language packs should include things like different address and date formats which are easily changed.
  24. Title says it all really. Has anyone got PayPal One Touch working with oscommerce. I currently use the latest version of the paypal app on a version of edge, with web payments standard and according to paypal one touch is available but ther eis no mention on the Paypal website on how to set this up.
  25. 14steve14

    Does anyone use Paypal One Touch for payments

    I spoke to PayPal about this and was directed to a help page on their website. A user needs to activate one-touch from within their PayPal account security section. You have to confirm that you want to remain logged in to PayPal on your devices and everything should work. What they cant tell me is why nothing shows on my site without me being logged in to the site. Without being logged in, the site has no idea who I am. It also did not work on my site when they tried to test things so at that point I gave up, as they said it should be working on the product pages.