クライアントの商品ページにクイックビュー/クイック購入機能を追加する必要があります。基本的に、Quick Buyボタンをクリックすると、製品の詳細を含むmodal/divが表示され、Buyボタンが表示されます。私のクライアントは、別の製品詳細ページよりもむしろこれを持っています。これを行うための推奨される方法はありますか?私は、モーダルを開き、モーダルのdivに隠された製品の詳細機能を呼び出すために、呼び出す際にプロダクトIDをパラメータとして渡すことができると考えていました。
私は以下のコードを追加しました。
<!-- product with call to modal -->
{exp:channel:entries channel="assets" dynamic="no" sort="asc" category="22" limit="1" entry_id="23"}
- Date: {asset_date}
- Price: {product_price}
- Status: Available
- Reserve Asset
{/exp:channel:entries}
<!-- product details modal content -->
{exp:channel:entries channel="assets" category_id="22" limit="1"}
{exp:cartthrob:add_to_cart_form id="add-cart" entry_id="{entry_id}" no_tax="{no_tax}" no_shipping = "{no_shipping}" return="checkout/view_cart"}
- Date: {asset_date}
- Price: {product_price}
- Status: Available
- <button type="submit" class="btn btn-primary btn-sm">Reserve Asset</button>
{/exp:cartthrob:add_to_cart_form}
{/exp:channel:entries}