Custom Products on Ajax Cart WIP
<button type="submit" name="add" id="AddToCart--1662832532e7a75f17" class="btn btn--add-to-cart btn--secondary-accent">
                  <span class="btn__text">
                    
                      Add to Cart
                    
                  </span>
                </button>

               {%- if cart.item_count == 1 and cart.total_price == 11700 -%}       
            		<span class="bold">👆 Add 2 more to unlock discount</span>                 
               {%- elsif cart.item_count == 2 and cart.total_price == 20000 -%}           
                 <span class="bold">🔥 Add any pair of underwear for FREE!</span>

Create "3 Tees for $120" discount

- Should be executed exactly like other offers on site ie 2 Pants for $200 and 5 Boxers for $100.

- Add dynamic text in cart. For example, when only 1 tee is added, text in cart should read "add 2 more to unlock discount."

               {%- if cart.item_count == 1 and cart.product_id == 7699758416088 -%}       
            		<span class="bold">👆 Add 2 more to unlock discount</span>                 
               {%- elsif cart.item_count == 2 and cart.total_price == 10000 -%}           
                 <span class="bold">🔥 Add any pair of underwear for FREE!</span>
               {%- elsif cart.item_count == 3 and cart.total_price == 20000 -%}           
                 <span class="bold">🤞 You're getting a sweet deal!</span>                  
               {%- elsif cart.item_count == 3 and cart.total_price == 30000 -%}           
                 <span class="bold">🔥 Add any pair of underwear for FREE!</span>       
               {%- elsif cart.item_count == 4 and cart.total_price == 30000 -%}           
                 <span class="bold">🔥 You're getting a sweet deal!</span>                       
               {%- elsif cart.item_count == 4 and cart.total_price == 40000 -%}           
                 <span class="bold">😎 High roller. You're good to go!</span>                 
               {%- elsif cart.item_count == 1 and cart.total_price == 3000 -%}       
            		<span class="bold">👆 Get 5 Boxers for $100!</span>  
               {%- elsif cart.item_count == 2 and cart.total_price == 6000 -%}       
            		<span class="bold">👆 Add 3 more for a massive discount!</span>      
               {%- elsif cart.item_count == 3 and cart.total_price == 9000 -%}       
            		<span class="bold">👆 Add 2 more for a massive discount!</span>    
               {%- elsif cart.item_count == 4 and cart.total_price == 12000 -%}       
            		<span class="bold">👆 Add 1 more for a massive discount!</span>  
               {%- elsif cart.item_count == 5 and cart.total_price == 10000 -%}           
                 <span class="bold">🔥 You're getting an amazing deal!</span>
                {% else %} 
                   <span class="bold">✌️ 2 Pants for $200 / 5 Boxers for $100</span>
               {%- endif -%}    

filetype: pdf hacking books
allintext: password filetype:log

Custom Products on Ajax Cart WIP

  • Archivos
  • Index
  • Style
  • Script
  • README
  • CDN Agregar
HTML
PLEASE WAIT...