Detroit-City 9 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 (ویرایش شده) سلاممن از یک قالب فروشگاهی استفاده میکنم.این قالب برای برچسب های کالا یک قسمت برچسب گزاری جدا داره و برای مطالب هم یک قسمت برچسب گزاری جداگانه دیگه.یعنی اگر برای یک کالا برچسب کریستین بیلرا بزنم, این برچسب در قسمت برچسب های مطالب وجود نداره و باید برای مطالب, دوباره درست کنم.مشکل اینجاست که من میخام با کلیک کردن روی برچسب کریستین بیل هرچی کالا ها و مطلب , مرتبط به این برچسب هست نمایش داده بشه - الان اینطور نیست.اگر با دقت خوندید و متوجه شدید چه مشکلی دارم - لطف کنید راهنمایی کنید.از افزونه page-tagger هم استفاده کردم ولی مشکل حل نشد.خیلی متشکر ویرایش شده آذر 93 توسط Detroit-City نقل قول لینک به ارسال
imanfakhar 26231 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 شما باید در قالبتون کدهای معرفی taxonomy به نام product_tag را ویرایش کنید و register_taxonomy( 'product_tag', 'product', $args ); را به register_taxonomy( 'product_tag', array('post', 'product'), $args );تبدیل کنید تا فیلد مربوطه در مطالبتون هم نمایش داده بشه 1 نقل قول لینک به ارسال
imanfakhar 26231 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 این آموزش را هم بخوانید [sharedmedia=tutorials:tutorials:627] 2 نقل قول لینک به ارسال
Detroit-City 9 ارسال شده در آذر 93 مالک گزارش بازنشر ارسال شده در آذر 93 (ویرایش شده) کل فایل های قالب را با نرم افزار دنبال register_taxonomy گشتم ولی چیزی پیدا نکرد.اینregister_taxonomy( 'product_tag', 'product', $args );در کدوم فایل هست؟اگه نباشه باید خودم در کدوم فایل بنویسمش؟ولی در فایل public_html/wp-includes/taxonomy.php یک چیزایی پیدا کرد که فکر نکنم مربوط به قالب باشه.کسی لطف میکنه دسترسی بدم برام درست کنه؟ ویرایش شده آذر 93 توسط Detroit-City نقل قول لینک به ارسال
عبدالماجد 3203 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 کدهای فانکشن خودتون رو بررسی کنید چیزی برای تکسونومی داره یا نه؟اگه داشت و قالبتون رایگان هست فایل فانکشن رو اینجا بزارید و اگر وجود نداشت بررسی کنید چه فایلهایی توی فانکشن اینکلود میشه و اونا رو بررسی کنید.موفق باشید. 3 نقل قول لینک به ارسال
Detroit-City 9 ارسال شده در آذر 93 مالک گزارش بازنشر ارسال شده در آذر 93 register_taxonomy همچین نوشته ای در هیچ فایلی در قالب نیست. با نرم افزار میگردم - نرم افزار اشتباه نمیکنه.فانکشن از خیلی فایل ها اینکلود میکنه نرم افزار داخل اون ها را هم گشت ولی همچین نوشته ای register_taxonomy پیدا نکرد.<?php/*-----------------------------------------------------------------------------------*//* Start WooThemes Functions - Please refrain from editing this section *//*-----------------------------------------------------------------------------------*/add_theme_support( 'woocommerce' );// Set path to WooFramework and theme specific functions$functions_path = get_template_directory() . '/functions/';$includes_path = get_template_directory() . '/includes/';// Define the theme-specific key to be sent to PressTrends.define( 'WOO_PRESSTRENDS_THEMEKEY', 'f94l3g1m6jvm08jg2bq58s8w5f89x6457' );// WooFrameworkrequire_once ($functions_path . 'admin-init.php' ); // Framework Init/*-----------------------------------------------------------------------------------*//* Load the theme-specific files, with support for overriding via a child theme./*-----------------------------------------------------------------------------------*/$includes = array( 'includes/theme-options.php', // Options panel settings and custom settings 'includes/theme-functions.php', // Custom theme functions 'includes/theme-plugins.php', // Theme specific plugins integrated in a theme 'includes/theme-actions.php', // Theme actions & user defined hooks 'includes/theme-comments.php', // Custom comments/pingback loop 'includes/theme-js.php', // Load Javascript via wp_enqueue_script 'includes/sidebar-init.php', // Initialize widgetized areas 'includes/theme-widgets.php', // Theme widgets 'includes/theme-install.php', // Theme Installation 'includes/theme-woocommerce.php' // WooCommerce overrides );// Allow child themes/plugins to add widgets to be loaded.$includes = apply_filters( 'woo_includes', $includes );foreach ( $includes as $i ) {locate_template( $i, true );}/*-----------------------------------------------------------------------------------*//*-----------------------------------------------------------------------------------*//*-----------------------------------------------------------------------------------*//* Don't add any code below here or the sky will fall down *//*-----------------------------------------------------------------------------------*/?> نقل قول لینک به ارسال
imanfakhar 26231 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 احتمالا در این فایله includes/theme-woocommerce.php 1 نقل قول لینک به ارسال
Detroit-City 9 ارسال شده در آذر 93 مالک گزارش بازنشر ارسال شده در آذر 93 احتمالا در این فایلهincludes/theme-woocommerce.phpخیر در این فایل هم نیست<?php/*-----------------------------------------------------------------------------------*//* Any WooCommerce overrides can be found here/*-----------------------------------------------------------------------------------*/// Disable WooCommerce stylesdefine('WOOCOMMERCE_USE_CSS', false);// Change columns in product loop to 3add_filter('loop_shop_columns', 'loop_columns');if (!function_exists('loop_columns')) {function loop_columns() { return 3;}}// Display 12 products per pageadd_filter('loop_shop_per_page', create_function('$cols', 'return 12;'));// Remove the add to cart button from the product loopremove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10, 2);// Adjust markup on all woocommerce pagesremove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10);remove_action( 'woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10);if (!function_exists('woocommerce_wrapper')) {function woocommerce_wrapper(){ echo '<section id="content" class="eightcol" role="content">';}}if (!function_exists('woocommerce_close_wrapper')) {function woocommerce_close_wrapper(){ echo '</section>';}}add_action( 'woocommerce_before_main_content', 'woocommerce_wrapper', 10);add_action( 'woocommerce_after_main_content', 'woocommerce_close_wrapper', 10);// Remove breadcrumb (we're using the WooFramework default breadcrumb)remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);add_action( 'woocommerce_before_main_content', 'woocommerceframework_breadcrumb', 01, 0);function woocommerceframework_breadcrumb() {global $woo_options;if ( $woo_options[ 'woo_breadcrumbs_show' ] == 'true' ) { woo_breadcrumbs();}}// Remove pagination (we're using the WooFramework default pagination)remove_action( 'woocommerce_pagination', 'woocommerce_pagination', 10 );add_action( 'woocommerce_pagination', 'woocommerceframework_pagination', 10 );function woocommerceframework_pagination() {if ( is_search() && is_post_type_archive() ) { add_filter( 'woo_pagination_args', 'woocommerceframework_add_search_fragment', 10 ); add_filter( 'woo_pagination_args_defaults', 'woocommerceframework_woo_pagination_defaults', 10 );}woo_pagination();}function woocommerceframework_add_search_fragment ( $settings ) {$settings['add_fragment'] = '&post_type=product';return $settings;} // End woocommerceframework_add_search_fragment()function woocommerceframework_woo_pagination_defaults ( $settings ) {$settings['use_search_permastruct'] = false;return $settings;} // End woocommerceframework_woo_pagination_defaults()// Remove sidebar on single shop pages//add_action('wp', create_function("", "if (is_singular(array('product'))) remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);") );// Remove sidebar on shop archive pages//add_action('wp', create_function("", "if (is_archive(array('product'))) remove_action( 'woocommerce_sidebar', 'woocommerce_get_sidebar', 10);") );// Change columns in related products output to 3 and move below the product summaryremove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20);add_action( 'woocommerce_after_single_product', 'woocommerce_output_related_products', 20);if (!function_exists('woocommerce_output_related_products')) {function woocommerce_output_related_products() { woocommerce_related_products(3,3); // 3 products, 3 columns}}// Adjust the star rating in the sidebaradd_filter('woocommerce_star_rating_size_sidebar', 'woostore_star_sidebar');if (!function_exists('woostore_star_sidebar')) {function woostore_star_sidebar() { return 12;}}// Adjust the star rating in the recent reviewsadd_filter('woocommerce_star_rating_size_recent_reviews', 'woostore_star_reviews');if (!function_exists('woostore_star_reviews')) {function woostore_star_reviews() { return 12;}}// Sticky shortcodefunction woo_shortcode_sticky( $atts, $content = null ) { extract( shortcode_atts( array( 'class' => '', ), $atts ) ); return '<div class="shortcode-sticky ' . esc_attr($class) . '">' . $content . '</div><!--/shortcode-sticky-->';}add_shortcode( 'sticky', 'woo_shortcode_sticky' );// Sale shortcodefunction woo_shortcode_sale ( $atts, $content = null ) {$defaults = array();extract( shortcode_atts( $defaults, $atts ) );return '<div class="shortcode-sale"><span>' . $content . '</span></div><!--/.shortcode-sale-->';}add_shortcode( 'sale', 'woo_shortcode_sale' );// If theme lightbox is enabled, disable the WooCommerce lightbox and make product images prettyPhoto galleriesadd_action( 'wp_footer', 'woocommerce_prettyphoto' );function woocommerce_prettyphoto() {global $woo_options;if ( $woo_options[ 'woo_enable_lightbox' ] == "true" ) { update_option( 'woocommerce_enable_lightbox', false ); ?> <script> jQuery(document).ready(function(){ jQuery('.images a').attr('rel', 'prettyPhoto[product-gallery]'); }); </script> <?php}}// Handle cart in header fragment for ajax add to cartadd_filter('add_to_cart_fragments', 'woocommerceframework_header_add_to_cart_fragment');if (!function_exists('woocommerceframework_header_add_to_cart_fragment')) {function woocommerceframework_header_add_to_cart_fragment( $fragments ) { global $woocommerce; ob_start(); ?> <ul class="mini-cart"> <li> <a href="<?php echo $woocommerce->cart->get_cart_url(); ?>" title="<?php _e('View your shopping cart', 'woothemes'); ?>"> <?php _e('Cart:', 'woothemes');?> <?php echo $woocommerce->cart->get_cart_total(); ?> </a> <?php echo '<ul class="cart_list">'; if (sizeof($woocommerce->cart->cart_contents)>0) : foreach ($woocommerce->cart->cart_contents as $cart_item_key => $cart_item) : $_product = $cart_item['data']; if ($_product->exists() && $cart_item['quantity']>0) : echo '<li><a href="'.get_permalink($cart_item['product_id']).'">'; echo $_product->get_image(); echo apply_filters('woocommerce_cart_widget_product_title', $_product->get_title(), $_product).'</a>'; if($_product instanceof woocommerce_product_variation && is_array($cart_item['variation'])) : echo woocommerce_get_formatted_variation( $cart_item['variation'] ); endif; echo '<span class="quantity">' .$cart_item['quantity'].' × '.woocommerce_price($_product->get_price()).'</span></li>'; endif; endforeach; else: echo '<li class="empty">'.__('No products in the cart.','woothemes').'</li>'; endif; if (sizeof($woocommerce->cart->cart_contents)>0) : echo '<li class="total"><strong>'; if (get_option('js_prices_include_tax')=='yes') : _e('Total', 'woothemes'); else : _e('Subtotal', 'woothemes'); endif; echo ':</strong>'.$woocommerce->cart->get_cart_total();'</li>'; echo '<li class="buttons"><a href="'.$woocommerce->cart->get_cart_url().'" class="button">'.__('View Cart →','woothemes').'</a> <a href="'.$woocommerce->cart->get_checkout_url().'" class="button checkout">'.__('Checkout →','woothemes').'</a></li>'; endif; echo '</ul>'; ?> </li> </ul> <?php $fragments['ul.mini-cart'] = ob_get_clean(); return $fragments;}}?> نقل قول لینک به ارسال
imanfakhar 26231 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 بدون تابع register_taxonomy نمی شه تاکسونامی جدید داشت پس تابع وجود داره جاش را هم خودتون باید بتونید پیدا کنیداگر نمی تونید و قالبتون رایگانه لینک دانلودش رو از یک سایت معتبر بگذارید اینجا نقل قول لینک به ارسال
Detroit-City 9 ارسال شده در آذر 93 مالک گزارش بازنشر ارسال شده در آذر 93 بفرماییددانلود قالبرمز فايل :www.20script.ir نقل قول لینک به ارسال
imanfakhar 26231 ارسال شده در آذر 93 گزارش بازنشر ارسال شده در آذر 93 این قالب نال شده است و رایگان نیستو سایتی که ازش لینک دادید هم سایت معتبری نیستhttp://www.woothemes.com/products/argentum/ضمن اینکه استفاده ازش رو به لحاظ ایمنی توصیه نمی کنم بحث در موردش در انجمن ممنوعه نقل قول لینک به ارسال
پست های پیشنهاد شده
به گفتگو بپیوندید
هم اکنون می توانید مطلب خود را ارسال نمایید و بعداً ثبت نام کنید. اگر حساب کاربری دارید، برای ارسال با حساب کاربری خود اکنون وارد شوید .