0% found this document useful (0 votes)
30 views

Woo Integration

Admin login credentials are provided: username is jamaxel and password is bXG65eP0jm0SWbS2. Instructions are given for activating plugins, setting up WooCommerce pages and products, customizing the shop page template, adding featured products, and other WooCommerce elements like the cart, account links, search bar, and success message. A checklist for the project is also included.

Uploaded by

evemil berdin
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Woo Integration

Admin login credentials are provided: username is jamaxel and password is bXG65eP0jm0SWbS2. Instructions are given for activating plugins, setting up WooCommerce pages and products, customizing the shop page template, adding featured products, and other WooCommerce elements like the cart, account links, search bar, and success message. A checklist for the project is also included.

Uploaded by

evemil berdin
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Admin login credentials:

=====================
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.

(Editing begins here)


=====================
For Products/Shop Page
=====================

1. Create woocommerce.php file (copy file from page.php)


Path: wp-content > themes > themeName > page.php
a. Add woocommerce to the class wrapper
<div class="wrapper woocommerce">

b. Replace the line "<?php get_template_part('loop','home'); ?>"


with this: "<?php woocommerce_content(); ?>"
2. In banner.php, look for the "(has_post_thumbnail())"
add this: && !is_woocommerce()
result: (has_post_thumbnail() && !is_woocommerce())

3. In banner.php, replace the line with '<h1><?php the_title(); ?></h1>' in it with


this code

<?php if(is_product_category() || is_shop()){ ?>


<h1><?php echo woocommerce_page_title(); ?></h1>
<?php }else{ ?>
<h1><?php the_title(); ?></h1>
<?php } ?>

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 &amp; Apparel in
Columbus, Ohio | ".get_bloginfo('name');?>
<?php elseif (get_the_title() == "Home"): ?>
<?php echo " Clothing &amp; Apparel in Columbus, Ohio "."-
".get_bloginfo('name');?>
<?php elseif (!is_shop()): ?>
<?php echo the_title()." | Clothing &amp; 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

You might also like