Jump to content
Latest News: (loading..)

JcMagpie

♥Ambassador
  • Content count

    252
  • Joined

  • Last visited

  • Days Won

    2

JcMagpie last won the day on May 24

JcMagpie had the most liked content!

2 Followers

Profile Information

  • Real Name
    Zahid
  • Gender
    Male
  • Location
    London
  • Interests
    Chilling out with a cold drink and music.
  • Website

Recent Profile Visitors

2,524 profile views
  1. Simple addon any issues post here. 4 cookie widgets tab by JcMagpie 24-5-2018 V1.0 GDPR Cookie Widgets V1.0 v2.3.4.1 CE 4 individual addon’s that can add a cookie widget to your site. These are all set for EU GDPR requirements so customer can refuse cookies. If you don't want this then don't use these. You can chose 4 positions. Top -Headder Bottom -Footer Left side Right side Only have one active at anyone time. Again totally standalone with no core code change. Once you have copied all the files over go into admin/Content /Modules and install the one you require It uses the stock privacy.php to display statement. You can change the words displayed and change what is shown on links and buttons. The link to ocS privacy has to be edited in the templates of each addon. The colors can also be changes in the same file. To add new text for each link simply edit one file in each addon . /includes/modules/content/footer/templates/tpl_cm_footer_jcmcookief_links.php /includes/modules/navbar_modules/templates/jcmnavcookie.php /includes/modules/boxes/templates/jcmcookieleft.php /includes/modules/boxes/templates/jcmcookieleft.php Simply find the following and replace the stock text between each marking. Only change the text marked **************** "content": { "message": "This website uses cookies to ensure you have the best experience on our website.", "dismiss": "Got it!", "deny": "Refuse Cookies", "link": "Learn More", "href": "https://www.tbyb.co.uk/privacy.php" Don't forget to put in your own website! This shows what it looks like, you can see the Nav bar working at the test site https://www.tbyb.co.uk/ Left and Right widgets.
  2. V1.02 With contact us email and privacy tab by JcMagpie 24-5-2018 Info links modal popup V1.02 v2.3.4.1 CE Updated to add email in the contact us pop. This is separate from the stock ocS contact us email. The email used is the store defined email address. Its not over complicated has basic verification and also has privacy statement modal popup on the email popup if that makes sense. Make the statement short as you can as you don't need war and peace in it. pressing the privicy statment button brings up the second popup
  3. I do this for my own sites which are English only. The code is free to down load and you can edit as much as you need I dont mind. If I have time I will take look at that and include it in the next up date. Better still if you have moded the code email it back and I will include in next update.
  4. GDPR & info tabs popup Edge v2.3.4.1 CE It should just work but if not stick it on here and I will do my best to help. You can try it out at the test site. https://tbyb.co.uk/ V1.0 full package by JcMagpie 24-5-2018 Zahid A much simpler footer information block addon. It gives you the information links and as modal popup with tabs so all GDPR , T&C and Shipping & Returns are all shown in one popup with tabs. The contact us is still separate link. Reduces the information footer block to just 2 nav pils. Why? Well gives a cleaner look to the footer and makes reading information much better for the customer. On large sites it can take time to find what your looking for. With stock osC if having found it you press a info link your taken away from the page you were looking at. With the Tabbed popup the page stays behind the popup and when you close the popup you carry on with what you were looking at. Again totally standalone with no core code change. Once you have copied all the files over go into admin/Content /Modules and install “JCM GDPR Information Links Block”. Turn it on and turn off the stock info block or another you may have uninstall it. This version will not change the contact us link. That remains as new window. The other stock links are not replaced. We make new ones for the popups so you can revert back anytime you like. To add new text for each link simply edit one file. /includes/modules/content/footer/templates/tpl_cm_footer_jcmgdprinfo_links.php Simply find the following and replace the stock text between each marking. Line 74 <!-- Place your GDPR text below this--> <!-- Place your GDPR text above this-→ Line 287 <!-- Place your T&C text below this--> <!-- Place your T&C text above this--> Line 60 <!-- Place your Shipping & Returns text below this--> <!-- Place your Shipping & Returns text above this-→ A basic GDPR statement is provided as a boiler plate you can edit this to your requirements. Make sure to replace all red stuff **business name** with your own details. Keep it plain text. That’s it. It looks like this I have kept it plain, You can add css if you want fancy colors. On clicking a link you get window popup with tabs. As you can see the page is still open behind popup. Popup can be closed by pressing the x in top or close button at bottom.
  5. This has been updated to fix the install bug. You can now install and remove stock info block. Info links modal popup Edge v2.3.4.1 CE Zahid
  6. preg_replace to preg_replace_callback

    Yes looks fine did not show any errors when I tested.
  7. I am not a developer or a coder so don't expect too much. It should just work but if not stick it one here and I will do my best to help. Info links modal popup Edge v2.3.4.1 CE You can try it out on this test site.https://tbyb.co.uk/ A simple footer info block addon it gives you the information links as modal popup. Why? Well on large sites it can take time to find what your looking for. With stock osC if having found it you press a info link your taken away from the page you were looking at. With the popups the page stays behind the popup and when you close the popup you carry on with what you were looking at. Again totally standalone with no core code change. Once you have copied all the files over go into admin/Content /Modules and install “JCM Information Links Block”. Turn it on and turn off the stock info block (do not uninstall original not sure why but it has to remain for the new one to work! Just turn it off. If anyone knows why this is let me know) :) This version will not change the contact us link. That remains as new window. The other stock links are not replaced. We make new ones for the popups so you can revert back anytime you like. To add new text for each link simply edit one file. /includes/modules/content/footer/templates/tpl_cm_footer_jcminformation_links.php Simply find the following and replace the stock text between each marking. Line 40 <!-- Place your Shipping & Returns text below this--> <!-- Place your Shipping & Returns text above this-→ Line 60 <!-- Place your GDPR text below this--> <!-- Place your GDPR text above this-→ Line 298 <!-- Place your T&C text below this--> <!-- Place your T&C text above this--> A basic GDPR statement is provided as a boiler plate you can edit this to your requirements. Make sure to replace all red stuff **business name** with your own details. Keep it plain text. That’s it nothing to complicated and should make the store front a little more user friendly. I do have a version that replaces the contact us with a modal popup but as that requires setting up the email I am not going to post that in the apps. You can see the email on the test site. If anyone wants that just pm me and I will email you the file.. It looks the same so be careful you are looking at correct one when testing. Zahid On clicking a link you get window popup. As you can see the page is still open behind popup. Popup can be closed by pressing the x in top or close button at bottom.
  8. preg_replace to preg_replace_callback

    Test in the sandbox and see what you get, as I do not get that error.
  9. preg_replace to preg_replace_callback

    Ok but that is something else as i do not get that when testing just that line in PHP sand box. What is the full function? Or better still you can test in sand box and see. http://sandbox.onlinephpfunctions.com/
  10. preg_replace to preg_replace_callback

    Not knowing the full code for the function, Please make sure you back up before doing this! Not a PHP expert but try this for first line and see what error you get. $text = preg_replace_callback("#\{\{((STORE_|OWNER_|EMAIL_)[A-Z0-9_]+)\}\}#", function ($matches) {return '$1'($matches['$1']); }, $text);
  11. Functionality query

    commercial version? osC is open source it has no commercial version! It has an official version which is out of date and not being developed. Or you can use the update Community version.
  12. Depends which version you are using.
  13. Functionality query

    You can do a lot in osC just with the product attributes. Much of the other things you are looking for are covered by osC addons. You have 2 options 1) install the latest 2.3.4.1 CE and have a go yourself. 2) post in the commercial support section and one of the experts can help you quickly get to your required solution.
  14. Undefined variable: language

    Clould it just be this? I have just checked my code and I have, require('includes/languages/' . $language . '/conditions.php');
  15. Your probably right but all I can do is try and do what I can to keep it relavent.
×