cedcommerce
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Not possible to log in on WordPressHey kvz,
Here is tutorial to fix this issue http://www.wpbeginner.com/wp-tutorials/how-to-fix-wordpress-login-page-refreshing-and-redirecting-issue/ ,you can try to use these methods for solving your problem, hope this will help you.Forum: Plugins
In reply to: [WooCommerce] How to remove content link in a prouduct page ?Hello Jeremiewp,
I have visited the site and find that you have installed a plugin named “WooCommerce Attribute Swatches” and in this plugin some actions or filter will be define which is used to add those dialog box. Deactivate that plugin to check that those dialog box will come from that plugin or not and let me know.Hello asmarsheikh1,
To show the “Read More” link for the posts, when you are listing your posts you’ll be writing
the_content() function to show the post content.
Just over there you need to replace the_content() by the following code:
<?php
/* Condition to check for mobile users */
if ( wp_is_mobile() ) {
/* Display and echo mobile specific stuff here */
the_excerpt();?>
<!– Add a link for reading more the post –>
“><?php _e( ‘Read More’, ‘text-domain’ );?>
<?php
}
?>Forum: Fixing WordPress
In reply to: edit all woocommerce email notification contentHie luckypacket,
In order to change the messages inside the mails send by woocommerce, you have to make changes in your active theme and override woocommerce template files.
Follow these steps :
1.You have to create a a folder named “template” inside your active theme folder.
2.After that make a folder named “emails” inside the “template“ folder just created in previous step.
3. Now copy the file wp-content => plugins => woocommerce => template => emails => customer-completed-order.php , and place that file inside your “email” folder created in step 2.
4. This is the final step, open the file you just copied inside “email” folder.
Try to find the folowing line “<p><?php printf( __( “Hi there. Your recent order on %s has been completed. Your order details are shown below for your reference:”, ‘woocommerce’ ), get_option( ‘blogname’ ) ); ?></p>”You will be able to find it at the very beginning of the file. If you are able to find the above mentioned line, I hope you got the idea what to do next.
Yeah…you got it right…. You just have too change the text to whatever text you want. 🙂Now you are good to go 🙂
Enjoy the trick.
Forum: Plugins
In reply to: Email guideline PDF when a product is orderedYou have to add code for uploading recipies pdf.In above code only already uploaded pdfs are attached with order email.Path of the pdf is defined here : $pdf_path = get_template_directory() . ‘/terms.pdf’; you can change it as you want.
Forum: Fixing WordPress
In reply to: Enabling User Comments on Pages, no PostsHello yphyn,
go to page’s add/edit section and see screen options of the page,please check the discussion checkbox once checked then there will appear a meta box beneath the page’s content area named as discussion, check allow comments checkbox from there and now you will see comment box at your pageForum: Fixing WordPress
In reply to: Category Title LineHello, to remove the comma’s between the categories, remove separator from the_category() function from your theme file content-archives.php
Forum: Hacks
In reply to: MySQL Query To Retrieve all products by catagoryHello,
You can do this by using the wp_query()
$args = array(
‘post_type’ => array(‘product’),
‘paged’ => $paged,
‘posts_per_page’ => ‘number of posts wants to fetch’,
‘tax_query’ => array(
array(
‘taxonomy’ => ‘product_cat’,
‘field’ => ‘term_id’, //This is optional, as it defaults to ‘term_id’
‘terms’ => your category here(you can also pass the array of categories here),
‘operator’ => ‘IN’ // Possible values are ‘IN’, ‘NOT IN’, ‘AND’.
)
)
);
$loop = new WP_Query($args);but as you asked for MySQL query here is the query you can directly use
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) WHERE 1=1 AND (
wp_term_relationships.term_taxonomy_id IN (‘category_id_here’)
) AND wp_posts.post_type = ‘product’ AND (wp_posts.post_status = ‘publish’ OR wp_posts.post_status = ‘future’ OR wp_posts.post_status = ‘draft’
OR wp_posts.post_status = ‘pending’ OR wp_posts.post_status = ‘private’) GROUP BY wp_posts.ID ORDER BY wp_posts.post_date DESC LIMIT 0, 10;Forum: Networking WordPress
In reply to: Super Admin – Cannot See it in WordPress MultiSite InstallFrom version 3.1 Super Admin has been replaced by Network Admin now the layout were changed , Super Admin and Network Admin are same things you can manage you sub sites from network admin dashboard .
Forum: Plugins
In reply to: [WooCommerce] Woocmmerce related products image size is too bigIf you have dedicated server or vps you can use this command to reduce image size:
convert image.png -quality 95 -resize 200×100 image.jpg
This is fastest solution as you can loop all images with least time. If you are not that much technical you can use image optimization plugin like https://wordpress.org/plugins/wp-smushit/ or https://wordpress.org/plugins/ewww-image-optimizer/
Forum: Fixing WordPress
In reply to: How to redirect a word press site to another urlHi There,
You can use simple trick do redirect from your site url. Just find your wordpress index.php file and look for first define and place this on above of define.
header(“Location: http://www.yourtempdomain.com”);
I hope this will work for you.
Forum: Fixing WordPress
In reply to: site content missingHello , looks like you have messed with WordPress permalink structure somehow that ’s why your are getting page not found error. For solving this error you can try to save again permalink setting from backend setting “Settings->Permalink”, Hope this will work for you.
Forum: Plugins
In reply to: Email guideline PDF when a product is orderedYou can attach pdf file with order email by using the below code in your functions.php
add_filter( ‘woocommerce_email_attachments’, ‘attach_recipe_guideline’, 10, 3);
function attach_recipe_guideline ( $attachments, $status , $order ) {
$allowed_order_statuses = array( ‘new_order’, ‘customer_processing_order’, ‘customer_completed_order’ );
if( isset( $status ) && in_array ( $status, $allowed_order_statuses ) ) {
$pdf_path = get_template_directory() . ‘/terms.pdf’;
$attachments[] = $pdf_path;
}
return $attachments;
}Forum: Plugins
In reply to: [WooCommerce] WooCommerce – Query for ordered productsIt seems that you have to increase the maximum execution time.You can
increase the maximum execution time in your php.ini file.Remember this is not a WordPress core file so if you are not sure how to edit it, contact your host provider to ask them to increase your maximum execution time. See instructions for increasing maximum execution time http://codex.wordpress.org/Common_WordPress_Errors#Maximum_execution_time_exceeded.Forum: Fixing WordPress
In reply to: Footer 2 3 and 4 disappeared .Hello,
When we see source-code of your page then in line number 286.
But this would not be same in theme file. So here is the quick solution.
Please write below code in your main.css in the bottom (http://pictureperfectsystems.com/wp-content/plugins/igniteup-template-compact/template/css/main.css?ver=3.2)
#about, #services, #find{ display: block !important; }Thanks,
CedCommerce