Jump to content
Latest News: (loading..)


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by JcMagpie

  1. Came across a small issue with tpl_cm_header_breadcrumb.php when doing some editing. Looks like the name has been duplicated, <div class="col-sm-<?php echo $content_width; ?> cm-header-breadcrumb breadcrumbs"> If it's allready been spoted the sorry for duplication.
  2. JcMagpie

    Site been working for a year, now broken!

    Trying to remotly debug like this is never going to be easy. If you think its the .htaccess then just remove everything and add it back one rule at a time to see whch is the problem. You shoud not need this? <IfModule mime_module> AddType application/x-httpd-ea-php72 .php .php7 .phtml </IfModule> This is questionable do you know why your using it? "The ETag HTTP response header is an identifier for a specific version of a resource. It allows caches to be more efficient, and saves bandwidth, as a web server does not need to send a full response if the content has not changed. On the other side, if the content has changed, etags are useful to help prevent simultaneous updates of a resource from overwriting each other ("mid-air collisions"). If the resource at a given URL changes, a new Etag value must be generated. Etags are therefore similar to fingerprints and might also be used for tracking purposes by some servers. A comparison of them allows to quickly determine whether two representations of a resource are the same, but they might also be set to persist indefinitely by a tracking server." <IfModule mod_headers.c> Header unset ETag </IfModule> FileETag None
  3. JcMagpie

    Pay what you want pricing

    Sure I understand people changing booking will cause issues with payments. Well you still have the 2 options listed above, but if you insist on having something the customer can enter an amount into you will have to look at adding that function to you cart as it's not in stock osC. You can ask a developer to make you something or you can use an existing add-on and update/change it to your needs, This old donations add-on should be all you need just update to your requirements. You will still need a dummy product to get them to the checkout to make the donation/ payment correction. https://apps.oscommerce.com/Ppmpx Oh and if you get it working why not post it back so others can make use of it. It's interesting that on of the main competitors has a Name Your Price option 😊 "Let Customers Pay What They Want With Name Your Price" Could be very useful if you have slots that are not popular! The customers could then offer a price to use them? May also be good for getting rid of old or dead stock, just let the customer name a price.
  4. JcM Header Categories This is a simple header add-on that lets place categories at the top of your site. It’s nothing fancy it just makes use of the stock osC categories function. It’s best used for sites with a small number of cats. Also on mobile devices the cats are shown at the top of the device rather than at the bottom as is with stock CE. It’s a no core change add-on. Simply install and turn on like any other add-on. It’s got some css in the template file to show on install but you can remove that or override it in your user.css. The options for styling are endless. That’s it. It has only been tested on CE.
  5. JcMagpie

    Site been working for a year, now broken!

    RewriteCond %{HTTPS} !on Is known to have issues on some server set-ups and can misbehave.
  6. JcMagpie

    Site been working for a year, now broken!

    Speak to your host, most good hosts will have nightly or weekly backups you can restore from. You may even find that you can do it yourself, check in your control panel. As you don't know what caused it, just restoring may not help but it's worth a try. As you think 2 key changes were made. First I would roll back the php update. Check with your host most now allow you to use the php version you require. If that makes no difference, then check the ssl you indroduced even turn it off for a while and check. To force all of the web traffic (every link in your website) to use HTTPS insert the following lines of code in the .htaccess file: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  7. JcMagpie

    Need to update for TLS 1.2

    😊 Well first use a smaller font, my eyes hurt reading that! Also first check if you have a problem by testing your site. https://www.ssllabs.com/ssltest/ For paypal see this, https://www.paypal.com/uk/smarthelp/article/why-do-i-need-to-upgrade-my-system-to-tls-1.2-faq3898 Then follow this thread, hopfully that will help.
  8. Header osC Banner rotator This is not my code, simply updated a 2015 code by vampirehunter So it will work with CE. This is a header carousel add-on that lets you make use of the stock osC banner function. It’s a no core change add-on. Simply install and turn on like any other add-on. Then go to admin/tools and use banner manager to make a new banner. The groups must be set to “Rotator” This is a carousel so you need to make a number of banners each set to “Rotator” It has only been tested on CE. In the image below you can see it working, directly below is the simple header banner add-on released earlier, they can be used together without any issues. Don’t forget the number of banners set up need to match the number set in the addon. That’s it enjoy.😊
  9. Sorry was a silly bug in original upload that meant the slider indicators did not work. Have fixed this and corrected some other issues. A full new package has been uploaded. If you have already installed, then turn off the module and then uninstall the add-on from admin. Only after doing this should you then copy all new files, then install and turn on. Should not affect any banners already made. https://apps.oscommerce.com/eI6qf&amp;header-osc-banner-rotator
  10. Simple header & footer Banners Please note that these are VERY basic add-ons, Other with more complex functions are available from developers. That said these 2 give you a very simple way of using the stock CE banner manager to display text or images. No core change add-on footer and header Simply install and turn on like any other footer or header add-on. Then go to admin/tools and use banner manager to make a new banner. The groups must be set to “footer” and or “header” Please make sure you have set up the banners before turning on the modules or you will display errors on your site. That’s it. To use this you have to fix osC CE banner manager first! Edit this file admin/includes/classes/phplot.php on line 1322 find if (is_array($color_asked) && (count($color_asked) == 3)) and add " { " like this if (is_array($color_asked) && (count($color_asked) == 3)){ Banner manager should now work properly in CE.
  11. To answer your question, yes there is a bug list All software will have some level of bug’s no matter how hard you try, its just a fact of life. I would not hold your breath for an update to CE! I think any update if at all will probably be with Bootstrap 4. I think for people who decide to use the current CE with bootstrap 3 to make small bug fixes themselves is not a big ask. I have “frozen” all my sites on current CE, It’s a perfectly good cart as is.
  12. 😊Post your request in the right place for paid work. Commercial Support
  13. 😂 Yep! Technically true It’s already been pointed out to @micke salloum @micke salloum if you still plan to use this then perhaps you can try and mitigate the chance that 2 people will genrate the same time stamp to within a second by using this insted? 😂 . microtime() returns the current Unix timestamp with microseconds. As I don’t use this addon I have no idea what security issues if any this will pose. $microtime = time(); $ticket_link_id = ''; for ($x=4;$x<10;$x++) { $ticket_link_id .= substr($microtime,$x,1); }
  14. use for ($x=4;$x<10;$x++)
  15. JcMagpie

    Fatal error, webhost is stumped

    As you only have a few hundred products, the fact that you broke the cat page is probably at the root of your problem, the cat table may have been corrupted by that broken page You could should restore from a known good backup and see if that fixes the problem first. Key will be what did that cat you attempted to add contained?
  16. JcMagpie

    Paypal Express PHP 7.2 Undefined Notice

    Yeah I dont think you can just tag that onto the front. It needs to be applied properly depending on the rest of the code. But then I'm not a php experts, sorry. example.
  17. JcMagpie

    Please Review my Website - comments are welcome

    Very good, clean, fast and responsive website. Layout design is always very much personal thing. It’s good to keep things fresh and up to date. In many sectors websites tend to look similar, it’s not always a bad thing. If you look at clothes retailers websites they all follow a similar style. These 3 top ranking uk site all use a very stock layout and look. http://www.asos.com/women/ http://www.newlook.com/uk https://www.boohoo.com/ As for sliders, in moderaton is probably best. These are 3 of the worlds top sites and all have a slider front and center on sites. https://www.ebay.co.uk/ https://best.aliexpress.com/ https://www.amazon.com/ So I think your in good company. 😁 ( but then I would say that!). Thanks to CE beeing moduler it's very easy to turn the sliders off and on as required.
  18. JcMagpie

    Paypal Express PHP 7.2 Undefined Notice

    That is why I said someone with more experiance. 😁
  19. JcMagpie

    Paypal Express PHP 7.2 Undefined Notice

    Its just php 7.2 now classes an undefined verable / array as a scurity risk hence the warning Relying on the default value of an uninitialized variable is problematic in the case of including one file into another which uses the same variable name. It is also a major security risk with register_globals turned on. E_NOTICE level error is issued in case of working with uninitialized variables, however not in the case of appending elements to the uninitialized array. isset() language construct can be used to detect if a variable has been already initialized. Additionally and more ideal is the solution of empty() since it does not generate a warning or error message if the variable is not initialized. Please check with someone else more experianced first before trying on live site. This clears the error in sandbox. if(isset($HTTP_GET_VARS['osC_Action'])) switch ($HTTP_GET_VARS['osC_Action']) { case 'cancel': tep_session_unregister('appPayPalEcResult'); tep_session_unregister('appPayPalEcSecret'); } http://sandbox.onlinephpfunctions.com/code/3b0feba987250aac1cd386e3c12ca2ab396437c2
  20. JcMagpie

    Report or tool to show when product was sold

    Just a quick hack but the existing report Products Purchased with small mod can do this, simply as shown in old thread just add a new view for each product sold. find the product you need the customer info for and click on view will call and you get a list of the customers that bought the product. just a quick hack bu t it works. Only checked on test site! Moded files are attached. These will need to be refined as I just got it working and nothing more. stats_products_purchased.php stats_willcall.php
  21. JcMagpie

    Report or tool to show when product was sold

    I know its not an add-on but this is a good open source report generator that with a little learning can be used to produce any report you like from your db. http://datavision.sourceforge.net/ Alternatively just export your db and use LibreOffice Base to generate the report localy. Some clever db guru may know the script to run in phpmyadmin to do this directly as db query Someone has already used one of the existing reports to produce somthing like what your after, should still work with a few tweeks.
  22. JcMagpie

    Nothing happens after install

    Make all your changes in user.css it will be in your shop root. You will find a sample user.css in the above thread. It give you the basic's to make chnages to the look of the stock shop.
  23. JcMagpie

    New install messing about.

    You are aware that zencart is based on oscommerce! so all you have is a fork of osC, last updated back in 2016! You would be far better of using the community addition of osC. Changing the style is as simple as adding css to your user.css file. You can change as much or as little as you like. Take a look at a couple of test sites and you will see it's simple to change. Both changed by just editing user.css. https://www.justfastfood.com/ https://www.tbyb.co.uk/ http://template.me.uk/234bs3/index.php
  24. test the code and see if it works for you, but this will give you a 6 digit number. <?php $time = time(); $ticket_link_id = ''; for ($x=3;$x<10;$x++) { $ticket_link_id .= substr($time,$x,1); } http://sandbox.onlinephpfunctions.com/code/be738f60d027fdab32d5bae693390f06072f4205