Woo Integration
Woo Integration
=====================
JAMAX
/osfj1000.php
Username : jamaxel
Password : bXG65eP0jm0SWbS2
=====================
Before sa pag activate sa plugin:
=====================
1. In wp-config.php, after the line "define('WP_DEBUG', false);" add this:
define('WP_MEMORY_LIMIT', '256M');
=====================
Activate the plugins
=====================
1. Upload and activate the 2 plugins
2. Setup WooCommerce Wizard
> check the woocommerce pages(My Cart, My Account, etc.)
3. Check the Woocommerce pages like sample for add to cart.
> add a product and look sa product.
4. If you set a WP page as SHOP page, replace <title> tag in head.php with these:
<title>
<?php if (is_shop()): ?>
<?php echo woocommerce_page_title()." | Clothing & Apparel in
Columbus, Ohio | ".get_bloginfo('name');?>
<?php elseif (get_the_title() == "Home"): ?>
<?php echo " Clothing & Apparel in Columbus, Ohio "."-
".get_bloginfo('name');?>
<?php elseif (!is_shop()): ?>
<?php echo the_title()." | Clothing & Apparel in Columbus,
Ohio | ".get_bloginfo('name');?>
<?php endif; ?>
</title>
=====================
My Account and My Cart
=====================
Cart
<li><a href="<?php echo wc_get_page_permalink('cart')?>"
class="btn_cart"><span><small><?php echo do_shortcode('[cart_count]');
?></small></span></a></li>
Account
<li><a href="<?php echo wc_get_page_permalink('myaccount')?>"
class="btn_login"></a></li>
=====================
Other WooCommerce Pages
=====================
Link: https://woocommerce.com/document/woocommerce-shortcodes/
=====================
For Featured Products
=====================
<?php
$homefeatured = array(
'post_type' => 'product',
'posts_per_page' => 6,
'tax_query' => array(
array(
'taxonomy' => 'product_visibility',
'field' => 'name',
'terms' => 'featured',
),
),
);
$loop = new WP_Query( $homefeatured );
if ( $loop->have_posts() ) {
while ( $loop->have_posts() ) : $loop->the_post(); global
$product; ?>
<div class="mid2_box1">
<?php if(has_post_thumbnail()){ ?>
<figure><a href="<?php echo get_permalink($id); ?>"><img
src="<?php $url = wp_get_attachment_image_src(get_post_thumbnail_id($post-
>ID),'full');echo $url[0]; ?>" alt="Featured Product" /></a></figure>
<?php }else{ ?>
<figure><a href="<?php echo get_permalink($id); ?>"><img
src="<?php bloginfo('template_url');?>/images/placeholder.png" alt="Featured
Product" /></a></figure>
<?php } ?>
<div class="mid2_info">
<!-- <p>We are excited to post contents...</p> -->
<h2><?php echo $product->get_price_html(); ?></h2>
<h3 style="display:block; white-space: nowrap;
overflow: hidden; text-overflow: ellipsis;"><?php the_title(); ?> </h3>
<ul>
<li><a href="<?php echo get_permalink($id); ?>">View
Details</a></li>
<?php if ( $product->is_type( 'variable' ) ) {?>
<li><a href="<?php echo get_permalink($id); ?
>">Select Options</a></li>
<?php }else{ ?>
<li><a href="<?php echo site_url().'/?add-to-
cart='.get_the_ID().'#featured-section' ?>" class="prod_options">Add to
Cart</a></li>
<?php } ?>
</ul>
</div>
</div>
<?php endwhile;
} else {
echo __( 'No products found' );
}
wp_reset_postdata();
?>
=====================
Success Message
=====================
<div id="featured-section">
<?php do_action( 'woocommerce_before_single_product' ); ?>
</div>
=====================
Search Bar
=====================
Link: https://wordpress.org/plugins/advanced-woo-search/
Shortcode: <?php echo do_shortcode('[aws_search_form]'); ?>
=====================
Color Scheme
=====================
=====================
Checklist link:
=====================
https://docs.google.com/spreadsheets/d/
1xcGG16PhvQ3qXdb8XuXBH1sRPxgZ11QXQP8g9eaZLsM/edit#gid=630937214