Jump to content

prestamonste

Members
  • Posts

    104
  • Joined

  • Last visited

Posts posted by prestamonste

  1. If you want to the video start when open browser, you need to add the param in the iframe:

    <iframe width="560" height="315" src="https://www.youtube.com/embed/MrOAmysdycA?autoplay=1" frameborder="0" allow="autoplay"></iframe>

    And it only auto start on chrome, Edge (not work on firefox).

    If you add the param

    <iframe width="560" height="315" src="https://www.youtube.com/embed/MrOAmysdycA?autoplay=1&mute=1" frameborder="0" allow="autoplay"></iframe>

    The video start on the firefox (but muted).

    You can read more it in here:

    https://stackoverflow.com/questions/7281765/how-to-embed-an-autoplaying-youtube-video-in-an-iframe

     

    • Like 1
  2. Hi there,

    This is my idea. You need to create a new module to show it.

    1. 1 file js, after loading product list page, it will get the all id products (you can get id_product by product url, data_idproduct, ...) of this page, after that use ajax >> sending this list id_product to front controller of module.

    2. Front controller will get list id_product,

    get the products in the current cart ($product = $this->context->cart->getProducts(true))

    => compare 2 arrays => product in cart

    3. in function success of js, check and show the flag (already in cart)

    Thanks,

  3. Hi there,

    In this case, you need to change your theme.

    Step 1:

    Open product.tpl file (via ftp, or cpanel): public_html/themes/your_current_theme/templates/catalog/product.tpl

    Step 2: Add the title of the tab Product customization

    EX: theme classic: go to line code 172 add this pieces code:

    {if $product.is_customizable && count($product.customizations.fields)}
                          <li class="nav-item">
                          <a
                            class="nav-link"
                            data-toggle="tab"
                            href="#customizations"
                            role="tab"
                            aria-controls="customizations">{l s='Product customization' d='Shop.Theme.Catalog'}</a>
                        </li>
                      {/if}

    Step 3: Add the content of tab Product customization

    {* Add the content of tab Product customization*}
                     <div class="tab-pane fade in" id="customizations" role="tabpanel">
                     {if $product.is_customizable && count($product.customizations.fields)}
                        {block name='product_customization'}
                          {include file="catalog/_partials/product-customization.tpl" customizations=$product.customizations}
                        {/block}
                      {/if}
                      </div>
                      {* End of add the content of tab Product customization*}

    Step 4: Remove old code of Product customization

    Hope it helpful.

     

    6-13-2020 4-23-29 PM.jpg

    6-13-2020 4-22-02 PM.jpg

    6-13-2020 4-25-02 PM.jpg

    6-13-2020 4-28-33 PM.jpg

  4. On 8/29/2019 at 1:10 AM, rushaboswal.rdx said:

    Hello all.
    Im getting spam Referrer(Website visitors) From random websites i dont know about. Im getting worried that might affect my ranking.

    A lot of them are porn website.
    Can anybody please help me to get rid of them please?
    Thank you.

    Hi there,

    In this case, you can use a module to block it or you can add the custom code to check email and email content in the ContactController.php (override this controller and put it in the folder: public_html/override/controllers/front and delete cache file with ps 1.6 before testing). This is my custom code for my site (PS 1.6.0.9). I added 2 functions: isSpamContentEmail() and isSpamEmail(). You can see more it in the attachment file.

    Thanks,

    ContactController.zip

  5. Hi there,

    There are 2 ways to fix this error.

    1. Update your shop to the last version

    2. Change the PS core:

    • Open file public_html/classes/Customer.php change validate lastname, firstname from name to isCustomerName & save file

    287673349_6-27-20192-39-28PM.thumb.jpg.9f3cb291348dec83bd637f519fcafe8a.jpg

    • Open class public_html/classes/Validate.php: Add the new function to validate customer name & save file & go to front end and double test

    public static function isCustomerName($name)
        {
            $validityPattern = Tools::cleanNonUnicodeSupport(
                '/^(?:[^0-9!<>,;?=+()\/\\@#"°*`{}_^$%:¤\[\]|\.。]|[\.。](?:\s|$))*$/u'
            );

            return preg_match($validityPattern, $name);
        }

    1501034994_6-27-20192-42-32PM.thumb.jpg.a0f7b418bacdecb6e958de7ba4673518.jpg

    Hope that helps! :D

  6. Hi James,

    You can add it by the way.

    Step 1: PS 1.6 Go to tab Price Rules >> Cart Rules >> Add new cart rule (PS1.7: Catalog >> Discounts)

    381826476_6-14-201911-03-26AM.thumb.jpg.a1beaac0020473076cec957d1c803646.jpg

    Step 2: Add conditions for cart rule

    1142057743_6-14-201910-59-34AM.thumb.jpg.aa5cb8cb7ca6cced794c80e031dd65cb.jpg

    Step 3: Add discount & related product.

    164411990_6-14-201911-00-33AM.thumb.jpg.039d85af54b3a6703447e0f2c2ac2d69.jpg

    It's done.

    Or you can use our module to add accessories, discount for main product & accessories (very quick), show accessories & add main product & accessories together with 1 click at the front end.

    https://addons.prestashop.com/en/cross-selling-product-bundles/23426-multi-accessories-pro.html

    You can test it in here:

    Back office:

    https://multi-accessories.demoprestamonster.com/adm/index.php?controller=AdminLogin&amp;[email protected]&amp;password=demodemo

    Front end:

    https://multi-accessories.demoprestamonster.com/en/casual-dresses/3-printed-dress.html

    Thanks,

     

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More