Woo Documentation

First of all, from the OxyMonkey team we want to thank you for trusting us and we welcome you to our family. We look forward to helping you build beautiful, agile and fast websites for your customers in a matter of minutes.

Requirements

  • Oxygen Builder
  • WooCommerce
  • Oxygen Elements for WooCommerce
  • PHP 7.4 or higher
  • WordPress 5.5+

Install and Activate the Plugin

It is important that you follow these steps as described, otherwise the license will not be activated correctly.

Once Oxygen + WooCommerce + Oxygen Elements for WooCommerce are activated, you must add the connector. The connector we use is called Asura and these are the steps you must follow:

  1. Click the Add New button on the Plugins page
  2. Type “Aether” on the Search plugins textbox
  3. Click the Install Now button on the Aether plugin
  4. Wait until the installation process finished, then click the Active button

Once the Aether plugin is activated, click the Add New button on the Plugins page again, and follow the next steps:

  1. Type “Asura Connector” on the Search plugins textbox
  2. Click the Install Now button on the Asura Connector plugin
  3. Wait until the installation process finished, then click the Active button

Congratulations, the Asura Connector plugin has been successfully installed.

Adding Connector String and License key

Once we have installed the plugin, we will proceed to add the connector string and the license to correctly import the designs. You can find the connector string and the license in My Account.

These are the steps you must follow to configure it correctly:

  1. Navigate to the Aether menu on the sidebar of your WordPress admin dashboard and then click on Asura Connector
  2. Click the Add New Provider button. A new form will show up, and please fill the Connector String field.
  3. Then click the Save button
  4. Now click the Manage License button and fill the Add License key field.

Now that everything is set up, we just need to import the settings, stylesheets and classes to make all the designs look amazing. To do this, click on the Install Wizard button. 

Congratulations, now you can enjoy each and every one of the templates. Attached is a video of the creators of the Connector in case you have any doubts. Also, for any problem you can write us to the e-mail help@oxymonkey.com

Code snippets

Once we have installed the connector, activated our license and imported all the settings, classes, style sheets… comes the last step of the process. We are going to add these codes to our website to have more functionalities.

The first thing to do is to download the Code Snippets plugin.

Once installed, copy these codes.

Go to Snippets > Add New.

Code 1

Title: Secondary Product Thumbnail
function secondary_product_thumbnail() {

		global $product;

		if (is_a($product, 'WC_Product')) {
			$attachment_ids = $product->get_gallery_image_ids();
	
			if ($attachment_ids) {
				$attachment_ids = array_values($attachment_ids);
				$secondary_image_id = $attachment_ids['0'];
	
				$secondary_image_alt = get_post_meta(
					$secondary_image_id,
					'_wp_attachment_image_alt',
					true
				);
	
				echo wp_get_attachment_image($secondary_image_id, 'shop_catalog', '', [
					'class' => 'wc-secondary-image attachment-woocommerce_thumbnail',
					'alt' => $secondary_image_alt,
				]);
			}
		}
	}
	
add_shortcode( 'second_image','secondary_product_thumbnail' );

Execute the code snippet everywhere

Code 2

Title: Remove “Archive”, “Category”, etc.
add_filter( 'get_the_archive_title', 'my_theme_archive_title' );
/**
 * Remove archive labels.
 * 
 * @param  string $title Current archive title to be displayed.
 * @return string        Modified archive title to be displayed.
 */
function my_theme_archive_title( $title ) {
	if ( is_category() ) {
		$title = single_cat_title( '', false );
	} elseif ( is_tag() ) {
		$title = single_tag_title( '', false );
	} elseif ( is_author() ) {
		$title = '<span class="vcard">' . get_the_author() . '</span>';
	} elseif ( is_post_type_archive() ) {
		$title = post_type_archive_title( '', false );
	} elseif ( is_tax() ) {
		$title = single_term_title( '', false );
	} elseif ( is_home() ) {
		$title = single_post_title( '', false );
	}

	return $title;
}

Execute only on the front page of the site

Congratulations, you have made it to the end. As we add more designs we will add more code snippets that you can find on this page.

Thank you for everything

The OxyMonkey Team

Copyright 2021 - OxyMonkey All Rights Reserved. We are not affiliated with Oxygen or endorsed by Soflyy.