質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
WordPress

WordPressは、PHPで開発されているオープンソースのブログソフトウェアです。データベース管理システムにはMySQLを用いています。フリーのブログソフトウェアの中では最も人気が高く、PHPとHTMLを使って簡単にテンプレートをカスタマイズすることができます。

Q&A

解決済

1回答

4758閲覧

Welcart wordpressのカスタマイズについて

退会済みユーザー

退会済みユーザー

総合スコア0

WordPress

WordPressは、PHPで開発されているオープンソースのブログソフトウェアです。データベース管理システムにはMySQLを用いています。フリーのブログソフトウェアの中では最も人気が高く、PHPとHTMLを使って簡単にテンプレートをカスタマイズすることができます。

0グッド

0クリップ

投稿2017/08/07 07:56

お世話になっております。
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 /** * <meta content="charset=UTF-8"> * @package Welcart * @subpackage Welcart walden theme */ get_header(); ?> <div class="two-column itemsingle clearfix"> <div class="catbox"> <?php if (have_posts()) : the_post(); ?> <div> id="post-<?php the_ID(); ?>"> <div class="storycontent"> <?php usces_remove_filter(); ?> <?php usces_the_item(); ?> <?php usces_have_skus(); ?> <div> <div class="alpha"> <script language="javascript"> $(document).ready( function (){ $("#itemgallery").PikaChoose({carousel:true,transition:[0]}); }); </script> <div class="pikachoose"> <ul id="itemgallery" class="jcarousel-skin-pika"> <li><?php usces_the_itemImage(0, 750, 480, $post); ?></li> <?php $imageid = usces_get_itemSubImageNums(); ?> <?php foreach ( $imageid as $id ) : ?> <li><?php usces_the_itemImage($id, 750, 480, $post); ?></li> <?php endforeach; ?> </ul> </div> </div><!-- .alpha--> <div class="beta"> <?php if(usces_sku_num() === 1) : usces_have_skus(); ?> <!--1SKU(SKUを1つしかもたない時の表示)--> <div class="text-section"> <h1 class="item_page_title"><?php the_title(); ?></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"> <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 -->
<?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">
<?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; ?>
<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()); ?>
</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>
<?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(); ?>

——————————————-———————-———————-———————-———————-———————-
WordPress のバージョン:(4.8.1)
Welcart のバージョン:(1.9.3)
Welcart専用の拡張プラグイン:(WCEX SKU Select)
ご利用のテーマ:(welthemesの有料テーマwalden)
症状を確認したブラウザ:(safari)
サーバー:(ロリポップ)
SSLの利用:(あり)
WordPress のパーマリンク設定:(/%category%/%postname%.html)

——————————————-———————-———————-———————-———————-———————-

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

退会済みユーザー

退会済みユーザー

2017/08/07 08:44

何がうまくできないのかを具体的に質問文に記載してください。
退会済みユーザー

退会済みユーザー

2017/09/22 11:18

すみません!解決いたしました!
guest

回答1

0

ベストアンサー

わかる方に直していただきました。
ありがとうございました!

投稿2017/09/22 11:21

退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問