ÈËÉú¾ÍÊDz©¡¤(Öйú)×ðÁúAGÆì½¢Ìü

ÈËÉú¾ÍÊDz©¡¤(Öйú)×ðÁúAGÆì½¢Ìü(LianLian Global)¹ÙÍøÊ×Ò³

Ïòshopify¹ºÎï³µÒ³ÃæÌí¼ÓÅäËÍÈÕÆÚÑ¡ÔñÆ÷

2022/03/08
×Ô½¨Õ¾

Ïò¹ºÎï³µÒ³ÃæÌí¼ÓÅäËÍÈÕÆÚÑ¡ÔñÆ÷


±¸×¢

ÈôÊÇÄúʹÓàShopify µÄÃâ·ÑÄ£°å£¬£¬ £¬£¬£¬Äú¿ÉÒÔÁªÏµ Shopify Ö§³ÖÍŶӻñµÃ¹ØÓڴ˽̵̳Ä×ÊÖú¡£ ¡£¡£¡£¡£´Ë½Ì³ÌÐèÒª 15 ·ÖÖÓµÄÉè¼ÆÊ±¼ä¡£ ¡£¡£¡£¡£ÈôÒªÏàʶÏêÇ飬£¬ £¬£¬£¬Çë²ÎÔÄ Support for themes¡£ ¡£¡£¡£¡£

±¸×¢

´Ë×Ô½ç˵ÓÃÓÚ¸´¹Å Shopify Ä£°å£¬£¬ £¬£¬£¬²»ÊÊÓÃÓÚ¡°Online Store 2.0¡±Ä£°å¡£ ¡£¡£¡£¡£

  • ÕÒµ½ÄúµÄÄ£°å¼Ü¹¹°æ±¾

  • ̽Ë÷¡°Online Store 2.0¡±Ä£°å×Ô½ç˵


Äú¿ÉÒÔÔÚ¹ºÎï³µÒ³ÃæÉϰüÀ¨Ò»¸öÈÕÀú£¬£¬ £¬£¬£¬Ê¹¿Í»§Äܹ»Ö¸¶¨Æä¶©µ¥µÄÅäËÍÈÕÆÚ¡£ ¡£¡£¡£¡£

×¢ÖØ

´Ë×Ô½ç˵ÉèÖò»ÊÊÓÃÓÚ³éÌëʽ»òµ¯³öʽ¹ºÎï³µ£¬£¬ £¬£¬£¬½öÊÊÓÃÓÚ¹ºÎï³µÒ³Ãæ£¨Î»ÓÚ URL your-store.com/cart£©¡£ ¡£¡£¡£¡£ÈôÊÇÄúʹÓùºÎï³µ³éÌë»òµ¯³öʽ¹ºÎï³µ£¬£¬ £¬£¬£¬Äú½«ÐèÒªÔÚÄ£°å±à¼­Æ÷Öн«ÄúµÄ¹ºÎï³µÑùʽ¸ü¸ÄΪ¹ºÎï³µÒ³Ãæ¡£ ¡£¡£¡£¡£ÔÚÄ£°åÔ¤ÀÀÖÐÏò¹ºÎï³µÖÐÌí¼Ó²úÆ·£¬£¬ £¬£¬£¬È»ºóµã»÷Ä£°å±à¼­Æ÷ÖеĹºÎï³µÒ³ÃæÑ¡Ï£¬£¬ £¬£¬£¬ÒÔÉó²éÄúµÄ¹ºÎï³µÉèÖᣠ¡£¡£¡£¡£

ÔÚ theme.liquid ÖаüÀ¨ jQuery

ÈôҪʹ´Ë×Ô½ç˵ÉèÖÃÕý³£ÊÂÇ飬£¬ £¬£¬£¬Ä³Ð©Ä£°åÐèÒª½« jQuery µÄ¾ç±¾±ê¼ÇÌí¼Óµ½ theme.liquid ½á¹¹ÎļþÖС£ ¡£¡£¡£¡£ÈôÊÇÄúʹÓà Boundless¡¢Debut °æ±¾ 17.2.0 »ò¸ü¸ß°æ±¾¡¢Express¡¢Narrative »ò Venture£¬£¬ £¬£¬£¬Äú¿ÉÄÜÐèҪƾ֤Èçϰ취²Ù×÷£º

  1. ÔÚ Layout Ä¿Â¼ÖУ¬£¬ £¬£¬£¬µã»÷ theme.liquid¡£ ¡£¡£¡£¡£

  2. ²éÕÒ´úÂëÖеĿ¢Ê </head> ±ê¼Ç¡£ ¡£¡£¡£¡£ÔÚ¿¢Ê </head> ±ê¼ÇÉÏ·½µÄÐÂÐÐÖУ¬£¬ £¬£¬£¬Õ³ÌùÒÔÏ´úÂ룺

    liquid {{ '//ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js' | script_tag }}

  3. µã»÷ÉúÑÄ¡£ ¡£¡£¡£¡£

ShopifyÉÌ»§¹ÙÍøÔ­ÎÄÏêÇ飺

Add a delivery date picker to your cart


Note

If you use a free theme from Shopify, then you might be able to contact Shopify Support for help with this tutorial. It requires 15 minutes of design time. To learn more, refer to Support for themes.

Note

This customization is for vintage Shopify themes, and doesn't apply to Online Store 2.0 themes.

  • Find out your theme's architecture version

  • Explore Online Store 2.0 theme customizations


You can include a calendar on your cart page that allows customers to specify a delivery date for their order.

Caution

This customization will not work for drawer or pop-up cart styles, and will only work for a cart page (at the URL your-store.com/cart). If you use a cart drawer or pop-up, then you will need to change your cart style to Page in the theme editor. Add a product to the cart in the theme preview, and then click the Cart page tab in the theme editor to view your cart settings.

Include jQuery in your theme.liquid

For this customization to work, some themes require that a script tag for jQuery is added to the theme.liquid layout file. If you use Boundless, Debut version 17.2.0 or newer, Express, Narrative, or Venture, then you may need to follow the next step:

  1. In the Layout directory, click theme.liquid.

  2. Find the closing </head> tag in the code. On a new line above the closing </head> tag, paste the following code:

    {{ '//ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js' | script_tag }}
  3. Click Save.

ÎÄÕÂÄÚÈÝȪԴ£ºShopifyÉÌ»§¹Ù·½ÍøÕ¾


¸ü¶à
¡¾ÍøÕ¾µØÍ¼¡¿¡¾sitemap¡¿