お世話になっております。
welthemesの有料テーマ「walden」というテーマを利用しています。
http://welthemes.com/themes/walden/
http://demo4.welthemes.com
welcartの拡張プラグインの「WCEX SKU Select」を購入し導入したいと思っていたのですが、オリジナルテーマを利用している場合、修正が必要なんだそうなんです。
https://www.welcart.com/docs/SkuSelect/themes.html#themes2-2
この修正がうまくできません…
ご教授頂けましたら幸いです。よろしくお願いいたします。
<?php elseif(usces_sku_num() > 1) : usces_have_skus(); ?> <?php //else: ?> <!--some SKU(複数のSKUを持っている場合:SKUごとに注文番号やオプション、価格、カートに入れるボタンを表示します)--> <div class="text-section"> <h1 class="item_page_title"><?php usces_the_itemName(); ?></h1> <div class="exp"> <?php the_content(); ?> <?php if( $item_custom = usces_get_item_custom( $post->ID, 'list', 'return' ) ) : ?> <div class="field"> <?php echo $item_custom; ?> </div> <?php endif; ?> </div><!-- end of exp --> </div> <section class="orderitem"> <form action="<?php echo USCES_CART_URL; ?>" method="post"> <div class="skuform"> <?php wcex_sku_select_form(); //追記?> <div class="wcss_loading"></div> <?php do { ?> <div class="skumultibox clearfix"> <h3><?php usces_the_itemSkuDisp(); ?><span>注文番号<?php usces_the_itemSku(); ?></span></h3> <div class="stockstatus"> <?php if( usces_the_itemCprice('return') > 0 ) : ?> <dl> <dt class=""><?php _e('List price', 'usces'); ?><?php usces_guid_tax(); ?></dt> <dd class="field_cprice"><span class="ss_cprice"><?php usces_the_itemCpriceCr(); ?></span></dd> </dl> <?php endif; ?> <dl> <dt class=""><?php _e('selling price', 'usces'); ?><?php usces_guid_tax(); ?></dt> <dd class="field_price"><span class="ss_price"><?php usces_the_itemPriceCr(); ?></span></dd> </dl> <dl> <dt class=""><?php _e('stock status', 'usces'); ?></dt> <dd class=""><span class="ss_stockstatus"><?php usces_the_itemZaiko(); ?></span></dd> </dl> </div> <div class="actionform"><section class="orderitem"> <div class="stockstatus"> <?php if( usces_the_itemCprice('return') > 0 ) : ?> <dl> <dt class="field_name"><?php _e('List price', 'usces'); ?><?php usces_guid_tax(); ?></dt> <dd class="field_cprice"><span class="ss_cprice"><?php usces_the_itemCpriceCr(); ?></span></dd> </dl> <?php endif; ?> <dl> <dt class="field_name"><?php _e('selling price', 'usces'); ?><?php usces_guid_tax(); ?></dt> <dd class="field_price"><span class="ss_cprice"><?php usces_the_itemPriceCr(); ?></span></dd> </dl> <dl> <dt class="field_name"><?php _e('stock status', 'usces'); ?></dt> <dd><span class="ss_stockstatus"><?php usces_the_itemZaiko(); ?></span></dd> </dl> <?php if( $item_custom = usces_get_item_custom( $post->ID, 'list', 'return' ) ) : ?> <div class="field"><?php echo $item_custom; ?></div> <?php endif; ?> </div> <div class="actionform"> <form action="<?php echo USCES_CART_URL; ?>" method="post"> <?php //usces_the_itemGpExp(); ?> <div class="skuform"> <?php wcex_sku_select_form(); ?> <div class="wcss_loading"></div> <?php if (usces_is_options()) : ?> <table class='skusingle'> <?php while (usces_have_options()) : ?> <tr><th><?php usces_the_itemOptName(); ?></th><td><?php usces_the_itemOption(usces_getItemOptName(),''); ?></td></tr> <?php endwhile; ?> </table> <?php endif; ?> <?php if( !usces_have_zaiko() ) : ?> <div class="zaiko_status"><?php echo apply_filters('usces_filters_single_sku_zaiko_message', __('Sold Out', 'usces')); ?></div> <?php else: ?> <div class="addtocart"><?php _e('Quantity', 'usces'); ?><?php usces_the_itemQuant(); ?><?php usces_the_itemSkuUnit(); ?><?php usces_the_itemSkuButton(__('Add to Shopping Cart', 'usces'), 0); ?></div> <div class="error_message"><?php usces_singleitem_error_message($post->ID, usces_the_itemSku('return')); ?></div> <?php endif; ?> </div><!-- end of skuform --> <?php echo apply_filters('single_item_single_sku_after_field', NULL); ?> <?php do_action('usces_action_single_item_inform'); ?> </form> </div> </section><!-- end of action-section -->
<div class="zaiko_status itemsoldout"><span class="ss_stockstatus"><?php echo apply_filters('usces_filters_single_sku_zaiko_message', esc_html(usces_get_itemZaiko( 'name' ))); ?></span></div> <div class="zaiko_status itemsoldout"><span class="ss_stockstatus"><?php echo apply_filters('usces_filters_single_sku_zaiko_message', __('Sold Out', 'usces')); ?></span></div> <div class="c-box"><?php _e('Quantity', 'usces'); ?><?php usces_the_itemQuant(); ?><?php usces_the_itemSkuUnit(); ?><?php usces_the_itemSkuButton(__('Add to Shopping Cart', 'usces'), 0); ?></div> <div class="addtocart"><?php _e('Quantity', 'usces'); ?> <?php usces_the_itemQuant(); ?><?php usces_the_itemSkuUnit(); ?><?php usces_the_itemSkuButton(__('Add to Shopping Cart', 'usces'), 0); ?></div> <?php //endif; ?> <p class="error"><?php usces_singleitem_error_message($post->ID, usces_the_itemSku('return')); ?></p> </div> </div><!-- skumultibox --> <?php } while (usces_have_skus()); ?><?php if (usces_is_options()) : ?> <table class='item_option'> <?php while (usces_have_options()) : ?> <tr> <th><?php usces_the_itemOptName(); ?></th> <td><?php usces_the_itemOption(usces_getItemOptName(),''); ?></td> </tr> <?php endwhile; ?> </table> <?php endif; ?>
<?php endif; ?> <?php usces_assistance_item( $post->ID, __('An article concerned', 'usces') ); ?> </div><!-- end of beta --> </div><!-- end of itemspage --> </div><!-- end of storycontent --> </div> <?php else: ?> <p><?php _e('Sorry, no posts matched your criteria.'); ?></p> <?php endif; ?> </div><!-- end of catbox --> <div class="relatedbox"> <h3>You may also like</h3> <div class="clearfix thumbindex"> <?php related_items_list(); ?> </div> </div><!-- end of relatedbox --> </div><!-- end of content --> <?php get_sidebar(); ?> <?php get_footer(); ?></div><!-- end of skuform --> <?php echo apply_filters('single_item_multi_sku_after_field', NULL); ?> <?php do_action('usces_action_single_item_inform'); ?> </form> </section>
——————————————-———————-———————-———————-———————-———————-
WordPress のバージョン:(4.8.1)
Welcart のバージョン:(1.9.3)
Welcart専用の拡張プラグイン:(WCEX SKU Select)
ご利用のテーマ:(welthemesの有料テーマwalden)
症状を確認したブラウザ:(safari)
サーバー:(ロリポップ)
SSLの利用:(あり)
WordPress のパーマリンク設定:(/%category%/%postname%.html)
——————————————-———————-———————-———————-———————-———————-
回答1件
あなたの回答
tips
プレビュー