Jump to content

ayz1

Member
  • Posts

    452
  • Joined

  • Last visited

  • Days Won

    12

Posts posted by ayz1

  1. Yes it was never going to be that easy. I've tried a few different ways to get it to work. It is a required field in the database and I switched that off. I turned off recapcha and still no joy so like you said there is something else going on somewhere. Hopefully someone with more knowledge than me will have a solution for you.

    I removed

        $.validator.addMethod("phone", function(phone, element) {
            phone = phone.replace(/\s+/g, "");
            return this.optional(element) || phone.match(/^[0-9-+()]+$/);
        }, $('#validate_phone').text());
        $.extend(jQuery.validator.messages, {
            required: $('#validate_field_required').text()
        });

    from the js/3.cubecart.validate.js file and it allowed registration without a phone number.

    Don't know if it has any other implications anywhere but it seems to work.

  2. you could try

    <div class="row">
          <div class="small-12 large-8 columns"><label for="phone" class="show-for-medium-up">{$LANG.address.phone}</label><input type="text" name="phone" id="phone"  value="{$DATA.phone}" placeholder="{$LANG.address.phone}"></div>
       </div>

  3. If you have added the script between the <head and </head> tags in the main.php file then it should appear on every page. If not only thing I can think is that it's maybe a chaching issue.

    I've had a look at your website and the script is on the product pages.

    Can see what you mean now. Although the script is there the ad isn't showing on the product pages.

     

  4. The coupon info is stored in the CubeCart_coupons table in your store database. Don't know why they aren't visible but I would guess if you want to stop a code being used you could delete the relevant code record from the coupons table. Always back up your database before editing it.

  5. I think that code just sets the button to active, dont think it makes the layout change. I tried changing that last night myself and it didn't change the layout at all. Below that there appears to be two blocks of code one for the list view and one for the grid view. I think these might be the other way around in the Galaxy skin (hard to tell not having a copy). Maybe using the code from an appropriate foundation skin might be worth trying. The foundation skin on the cubecart demo defaults to list view whereas the Galaxy demo defaults to grid view.

  6. In the help it states

    Linked Account: Allows your admin account to be linked to an account on the front end. To add an account, just type in the name and the auto-search will list applicable account names.

    Why I do not know.

  7. This should work in the meantime if anyone wants to give it a try.

    If you want a global sale but leave already discounted items as they are just run the following queries (No need to put store into global sale mode but set to Per-Product and assumes a 10% discount is required but this can be changed by altering the SET `sale_price` = `price` * 0.9 section)

    ALTER TABLE `cc_CubeCart_inventory` ADD `sale_price2` decimal(16,2) DEFAULT '0.00' COMMENT 'Sale Price2';

    UPDATE `cc_CubeCart_inventory` SET `sale_price2` = `sale_price`;

    UPDATE `cc_CubeCart_inventory` SET `sale_price` = `price` * 0.9 WHERE `sale_price` = 0;

     

    RUN AFTER END OF SALE to reset

    UPDATE `cc_CubeCart_inventory` SET `sale_price` = `sale_price2`;

    ALTER TABLE `cc_CubeCart_inventory` DROP `sale_price2`;

     

    Best tried on a backup to test first.

×
×
  • Create New...