Ïòshopify¹ºÎï³µÒ³ÃæÌí¼ÓÅäËÍÈÕÆÚÑ¡ÔñÆ÷
Ïò¹ºÎï³µÒ³ÃæÌí¼ÓÅäËÍÈÕÆÚÑ¡ÔñÆ÷
±¸×¢
ÈôÊÇÄúʹÓà 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£¬£¬£¬£¬£¬Äú¿ÉÄÜÐèҪƾ֤Èçϰ취²Ù×÷£º
ÔÚ Layout Ŀ¼ÖУ¬£¬£¬£¬£¬µã»÷
theme.liquid¡£¡£¡£¡£¡£²éÕÒ´úÂëÖеĿ¢ÊÂ
</head>±ê¼Ç¡£¡£¡£¡£¡£ÔÚ¿¢ÊÂ</head>±ê¼ÇÉÏ·½µÄÐÂÐÐÖУ¬£¬£¬£¬£¬Õ³ÌùÒÔÏ´úÂ룺liquid {{ '//ajax.googleapis.com/ajax/libs/jquery/2.2.3/jquery.min.js' | script_tag }}µã»÷ÉúÑÄ¡£¡£¡£¡£¡£
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:
In the Layout directory, click
theme.liquid.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 }}Click Save.
ÎÄÕÂÄÚÈÝȪԴ£ºShopifyÉÌ»§¹Ù·½ÍøÕ¾
- 1×ÔÁ¦Õ¾Ìø³öÂʽâ˵
- 2ÍâóÂô¼ÒÌá¸ßÏúÊÛÁ¿¸ÃÔõÑù´ÙÏúÄØ£¿£¿£¿£¿£¿£¿£¿£¿
- 3˰ÎñÔðÈÎÓëÕýµ±Ä±»®£ºÑÇÂíѷСÎÒ˽¼ÒÂô¼ÒÄÉ˰µÄÒªº¦ÒòËØ
- 4ÑÇÂíÑ·Âô¼ÒÏëÒªÔËÓªºÃµêËÁÐèÒª×¢ÖØÐ©Ê²Ã´
- 5ÑÇÂíÑ·Èý²½Ñ¡Æ·
- 6ÑÇÂíÑ·¹ºÎïʱÐèÒªÏȽ»ÄÉ˰·ÑÂ𣿣¿£¿£¿£¿£¿£¿£¿
- 7ÉêÇë·¨¹úVATÐèҪ׼±¸ÄÄЩÖÊÁÏÐÅÏ¢£¿£¿£¿£¿£¿£¿£¿£¿
- 8lazada²úÆ·ÎÊÌâÖÊÁ¿×¼ÔòÏÈÈÝ
- 9Å·ÖÞÑÇÂíÑ·FBAÖØÁ¿ÒªÇóÏê½â£º×èÖ¹²»ÐëÒªµÄ·£¿£¿£¿£¿£¿£¿£¿£¿îºÍƶÀ§
- 10Èë¿Ú¿ç¾³µçÉÌÍË»õÒÉÎʽâ´ð