Jump to content

RossF1984

Member
  • Content Count

    40
  • Joined

  • Last visited

Posts posted by RossF1984


  1. Hi,

    My Wifes store has both a physical store and an online Cubecart store. She wants to be able to hold one inventory that updates when a sale is made either via the website or via the till.

    Is anyone aware of such a solution? @Noodleman I think you had a post mentioning this before but I am unable to find it.

    Thanks in advance!

    Ross


  2. Hi,

    Hope you are all well?

    Looking for an extension, if one exists, to allow my cart to add a free gift if the customer purchases a certain quantity of a product?

    For example: If a customer buys 10 pencils they will receive a pencil sharpener free of charge.

    I would like to add the free gift into the inventory of the store but have its status unchecked, just to able to track stock levels.

    Does anyone know if such an extension exists?

    Thanks in advance!


  3. Thanks!

    I will give this a go. I managed to create a temporary solution that looks a little better than it did previously. But this involves putting the text string back to the original and then placing a statement below the Terms & Conditions statement.

    What do you mean by "may affect validation"? That the registration process may not complete correctly?


  4. Thanks @Al Brookbanks for the rapid repsonse. Sorry for sounding thick but do you know which file would I need to make this edit to? Would it be content.register.php.
    I have found this in there:

    <div class="row">
          <div class="small-12 large-8 columns"><span id="error_terms_agree"><input type="checkbox" id="terms" name="terms_agree" value="1" {$TERMS_CONDITIONS_CHECKED} rel="error_terms_agree"><label for="terms">{$LANG.account.register_terms_agree_link|replace:'%s':{$TERMS_CONDITIONS}}</label></span></div>
       </div>

    I added right to the class after the word columns (so class="small-12 large-8 columns right) and the attached was the result.

    Apologies, I am attempting to learn as I go which involves a lot of questions and guess work!

    registerpage1.jpg


  5. Hi all,

    I have made a change to a text string within 'Languages > Phrases within the customers account'

    The string I changed is:
    "register_terms_agree_link"

    The problem I am having is now that the string is longer it drops the text down from beside the box (See attached *.jpg) as it should be. I assume that this is due the column size being fixed on this form?

    Could anyone advise as to how to make it wider so that the text does not drop down? I have attempted to use the Inspect feature on Firefox but am unable to fathom it out.

    Kind regards,

    Ross

    registerpage.jpg


  6. @havenswift-hosting I have taken your advice and am trying out the module again. Works as required, now that I have looked into it more, apart from one small issue when having products with 'Product Options' applied. The prices including and excluding VAT are visible for a brief second and then revert back to displaying only prices Exc. VAT (As if the module were not installed).

    Hoping to get an answer from @Noodleman on this issue.

    Thanks,

    Ross


  7. 1 hour ago, bsmither said:

    I had an idea of a change will make the characters appear everywhere, but it was too much. I added:
    &nbsp;Ext.&nbsp;VAT

    as the "Symbol Right" to the currency exchange rate table in admin, Currencies.

    But, it was being shown everywhere, including the display of prices that actually had VAT added.

    Thanks @bsmither I will take a look and see if this is suitable.

    6 minutes ago, RossF1984 said:

    Thanks @bsmither I will take a look and see if this is suitable.

    @bsmither Works exactly how I wanted until you come to checkout....

    The phrase is added to the lines that have VAT included annoyingly.

    VAT (VAT 20%)                  £0.10 Exc. VAT
    Grand Total                         £0.59 Exc. VAT

    :(


  8. 1 hour ago, havenswift-hosting said:

    Hi Ross

    Your best bet would still be to use that plugin from @Noodleman - the display can be changed to do what you want so that it shows Ex-VAT or Inc-VAT

    Unless your website is 100% solely aimed at businesses then displaying prices only Ex-VAT may well land you in trouble with Trading Standards - this was the main reason this plugin was written !  Take a look at how we have implemented it in our Retail Therapy skin on https://www.cubecart-demo.co.uk using a toggle switch to choose between the two pricing schemes but that could also be enhanced to show extra wording if you wanted

    Ian

    I tried the plugin but it didn't show the text Exc. VAT... Can you let me know what options I should set? My cart does add VAT on checkout.


  9. Hi,

    Looking for advice on how I would go about changing my cart so that it displays the text Exc. VAT after every price? My cart is set to add VAT on at checkout. I just want customers to be aware that the prices shown do not include VAT.

    I was hoping that there would be an option for this within CubeCart but doesn't appear to be the case. I also looked at a third party extension by Noodleman but this just changes the pricing and does not display the text.

    Thanks in advance.

    Ross


  10. OK, so I have solved the issue but only partly. Using the code I found and edited below I get the functionality required but it alters the way in which the store appears... It is all on the left hand side and everything seems to have shrunk. Any tips or pointer on how to get it to display normally?

     

    <meta charset="UTF-8">
    <title></title>
    <!-- Bootstrap Core CSS -->
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" /><!-- Latest jQuery Library --><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script><!-- Bootstrap Core JS --><script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script><!-- Cookie JS for Modal --><script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.0/jquery.cookie.min.js"></script>
    <style type="text/css">.modal-footer {
    
    display: flex;
    
    justify-content: center;
    
    }
    
    .modal-dialog {
    
    margin: 0 auto;
    
    padding: 0;
    
    position: relative;
    
    top: 40%;
    
    transform: translateY(-40%);
    
    }
    </style>
    <div class="modal fade" id="myModal">
    <div class="modal-dialog">
    <div class="modal-content">
    <div class="modal-body">
    <p style="text-align: center;"><br />
    <img alt="" src="/images/source/delightfullogopopup.jpg" style="width: 288px; height: 74px;" /><br />
    <br />
    <span style="font-size:24px;">Please register for a <strong>TRADE CARD</strong> before completing your order.</span><br />
    <br />
    <br />
    <img alt="" src="/images/source/tradecard.gif" style="width: 700px; height: 85px;" /><br />
    <br />
    &nbsp;</p>
    </div>
    
    <div class="modal-footer"><!-- Make sure to include the 'nothanks' class on the buttons --><button aria-hidden="true" class="btn btn-default decline" data-dismiss="modal">OK</button></div>
    </div>
    <!-- /.modal-content --></div>
    <!-- /.modal-dialog --></div>
    <!-- /.modal --><script>
    
    // Delayed Modal Display + Cookie On Click
    
    $(document).ready(function() {
    
    // If no cookie with our chosen name (e.g. decline)...
    
    if ($.cookie("decline") == null) {
    
    // Show the modal, with delay func.
    
    $('#myModal').appendTo("body");
    
    function show_modal(){
    
    $('#myModal').modal();
    
    }
    
    // Set delay func. time in milliseconds
    
    window.setTimeout(show_modal, 500);
    
    }
    
    // On click of specified class (e.g. 'decline'), trigger cookie, which expires in 100 years
    
    $(".decline").click(function() {
    
    var date = new Date();
    
    var minutes = 1;
    
    date.setTime(date.getTime() + (minutes * 60 * 1000));
    
    $.cookie("decline", "true", { expires: date, path: '/' });
    
    });
    
    });
    
      </script>

     


  11. Hi,

    I have used some code for a Modal on the homepage of my store. However I would like this to use a cookie so that it doesn't show every time someone comes to my page. Does anyone know how I would be able to achieve this

    Apologies if this seems a silly question but I am very new to all of this "coding" and getting the Modal to work was challenging enough!....

    Thanks in advance!

    My code is currently as follows:
     

    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type="text/css">body {font-family: Arial, Helvetica, sans-serif;}
    
    /* The Modal (background) */
    .modal {
      display: ; /* Hidden by default */
      position: fixed; /* Stay in place */
      z-index: 1; /* Sit on top */
      padding-top: 200px; /* Location of the box */
      left: 0;
      top: 0;
      width: 100%; /* Full width */
      height: 100%; /* Full height */
      overflow: auto; /* Enable scroll if needed */
      background-color: rgb(0,0,0); /* Fallback color */
      background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    }
    
    /* Modal Content */
    .modal-content {
      background-color: #fefefe;
      margin: auto;
      padding: 20px;
      border: 1px solid #888;
      width: 60%;
    }
    
    /* The Close Button */
    .close {
      color: #aaaaaa;
      float: right;
      font-size: 28px;
      font-weight: bold;
    }
    
    .close:hover,
    .close:focus {
      color: #000;
      text-decoration: none;
      cursor: pointer;
    }
    </style>
    <h2><!-- The Modal --></h2>
    
    <div class="modal" id="myModal"><!-- Modal content -->
    <div class="modal-content"><span class="close">&times;</span>
    
    <p style="text-align: center;"><span style="font-size:24px;">Introducing.....</span><br />
    <br />
    <img alt="" src="/images/source/Hairshark-logocrop.png" style="width: 349px; height: 77px;" /></p>
    
    <h2 style="text-align: center;"><span style="font-size:24px;">The worlds most advanced volumising backcombing tool.</span><br />
    <br />
    <img alt="" src="/images/source/HairShark/hsbrush.png" style="width: 200px; height: 179px;" /></h2>
    </div>
    </div>
    <script>
    // Get the modal
    var modal = document.getElementById("myModal");
    
    // Get the button that opens the modal
    var btn = document.getElementById("myBtn");
    
    // Get the <span> element that closes the modal
    var span = document.getElementsByClassName("close")[0];
    
    // When the user clicks on <span> (x), close the modal
    span.onclick = function() {
      modal.style.display = "none";
    }
    
    // When the user clicks anywhere outside of the modal, close it
    window.onclick = function(event) {
      if (event.target == modal) {
        modal.style.display = "none";
      }
    }
    </script>

     


  12. 19 hours ago, bsmither said:

    In admin, Customer List, do newly registered customers show Status as unchecked? What about their Type?

    Apologies... My Wife had relayed the issue incorrectly. The issue goes back to Guests being able to place orders without registering. 

    There seems to be no way to disable this. Although you did advise this previously:

    In /classes/gui.class.php, near line 249, find:
    
    $GLOBALS['smarty']->assign('CATALOGUE_MODE', $GLOBALS['config']->get('config', 'catalogue_mode'));
    
    Change to:
    
    $GLOBALS['smarty']->assign('CATALOGUE_MODE', $GLOBALS['config']->get('config', 'catalogue_mode') || !User::getInstance()->is());

    Would this still show prices to the visitor? 


  13. Hi,

    I am currently using a box slider for 3 images on the front of my Wifes site.

    This is using the following code: 
     

    <ul class="bxslider">
    	<li><img src="https://WEBSITEURL/images/cache/Banner/BannerNew1.500.png" /></li>
    	<li><img src="https://WEBSITEURL/images/cache/Banner/BannerNew2.500.png" /></li>
    	<li><img src="https://WEBSITEURL/images/cache/Banner/LOYALTYBANNER.500.png" /></li>
    </ul>

    However, I want the three images to be automatically centralised within the slider. Currently they appear to be 'left justified'... The first two images sometime appear centralised but this is only because the image is made so that the content is pushed as far to the right as possible. (Because of this issue). The third image is newly uploaded and sits to the left.

    Am I missing something simple from the HTML?

    Also why does the file extension get changed *.500.png even though I uploaded it as *.png? 😕

    Thanks in advance.

    Ross


  14. Thanks for the reply.

    I tried the above and it essentially forces the user to register before checking out.

    This still, unfortunately, allows a user to make a purchase without being "vetted" first.

    The products on my store are only supposed to be available to trained professionals so I need to be able to restrict who buys them.

    I have an add-on that sets a user to "disabled" when they register, allowing me to set them to active when I have received their relevant documents. But the above code appears to be bypassing this as registration is happening at checkout and not by selecting the link at the top of the store.

    Your mentioned method would work however I want to still be able to display the prices to unregistered users as to attract customers. Although they would still need to register and provide documentation to be able to make a purchase.

    I need to be able to hide the ability to "add to basket" if a user is not registered and logged in on all products.

    Nightmare. 😢😢😢


  15.  

    Hi,

    Sorry for the thread resurrection but have used the above code and it works perfectly @bsmither.

    However I would like to add some additional text that is sent out in the email. Could you please guide me on where I need to add this into the two content strings as everytime I put the text/HTML where I think it should go it shows errors. 😔

    I would like to add: 

    <p>If you have not done so please register for a Trade Card <a href="http://www.defaultwebsite.com/trade-card.html">here</a>.</p>

    Any help would be greatly appreciated as usual! :thumbup:

×
×
  • Create New...