Onnay Okheng
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Random Ads] Work for Pages?Hola…
Sorry, not supported for page. But you can modify the file “wp-random-ads.php” line 39.
if(is_single()){
change with this code:
if(is_single() || is_page()){
Cheers!
Forum: Plugins
In reply to: [WP e-Commerce Related Products] Inline CSS (on_wpec_related_style)Hola sonic1243,
Thanks for your suggest to me. I think, next I will create setting for include style or not. Please wait for this ??
Regard,
Onnay Okheng
https://onnayokheng.comForum: Plugins
In reply to: [WP e-Commerce Related Products] Plugin is messing up wpsc-single-product.phpHola,
I don’t know wat happen about this. Can you give me your URL site? For default, my plugin just include style for related products. Also will display the related products on wpec action at single product.
Cheers!
Hola,
Yes, if product doesn’t has any related product, this plugin will show random products. But if you want remove random products, modify “wpec-related-product.php”
found this:
if(!$related_product->have_posts()){ $query = array ( 'showposts' => $number, 'orderby' => 'rand', 'post_type' => 'wpsc-product', 'post__not_in' => array ($post->ID), ); $related_product = new WP_Query($query); }
change with this:
if(!$related_product->have_posts()){ return; }
Cheers!
Forum: Plugins
In reply to: [WP e-Commerce Related Products] Plugin won't display in proper locationHmm… I think you can try display it manually. Just put this code wherever you want:
<?php on_wpec_related(); ?>
Cheers!
Hola Vas,
Yeah, you can set “manual” on setting “Display on”. And then you can put this code:
<?php on_wpec_related(); ?>
Below after this:
the_content();
Cheers!
Good luck with your shop mate ??
Forum: Reviews
In reply to: [WP e-Commerce Related Products] Works greatahaha.. Gracias mate! \m/
Hola sonic1243,
Yeah, I’m happy for hear that. Your site is awesome mate, clean and beautiful site ??
Cheers!
Forum: Plugins
In reply to: [WP Random Ads] [Plugin: WP Random Ads] html showing between adverts – help?Sorry for late reply. Can you provide me the URL site? I will check this.
Sorry for late reply. nope, this plugin will automatically add into the bottom of your content ??
closed
closed
closed
yeah you can, modify “wpec-related-products.php”. Change this script:
// cat in array foreach ($product_cat as $cat_item) { $cat_array_name_list[] = $cat_item->slug; }
with this:
// cat in array foreach ($product_cat as $cat_item) { if($cat_item->parent != 0) $cat_array_name_list[] = $cat_item->slug; }