Published in Documentation

Many owners of small online stores have asked us how to disable the Shipping address step in the checkout. This guide explains the steps to hide the checkout steps.

Hiding Shipping Address step

Step 1

Go to K2Store -> Options -> Cart settings
Set the Enable Shipping address fields to No.

Step 2

Open your products (K2 Items) and make sure that the Enable shipping for this item is set to NO.

Now shipping fields will not show.

Billing Address

You cannot disable the Billing address entirely.  However, you can reduce the number of fields in the billing address section.

You can disable the fields via the Custom Fields manager , which was introduced in K2Store 3.7.2

IMPORTANT: You should at least have the Email field enabled. The remaining could be disabled.

Friday, 17 January 2014 12:18

HOW TO translate the address field labels

Published in Documentation

Since K2Store 3.7.x, check address fields are rendered via the Custom Fields manager.

If you wanted to translate the Address field labels, you can enter your translation in the respective fields.
Go to Joomla admin -> K2Store -> Set up -> Custom Fields

Open the field, the label of which you want to change, and enter your translation in the label field.

Multi-lingual sites

if you are running multi-lingual site, you can enter a language constant in the label field.
Example: K2STORE_MY_FIELD_NAME

Then you can go to Language manager and create an Override
IMPORTANT: Set the Filter to Administrator before you create an override.

Click New
Language Constant: K2STORE_MY_FIELD_NAME
Text: Your translation
Check the For Both locations
Save.

 

You can repeat this steps for your second, third, and other languages.

You can use language strings in all the fields including Custom Error message, Option Titles (if field type is select, radio, checkbox).

 

Monday, 28 January 2013 19:05

HOWTO move add to cart block of K2Store

Published in Documentation

Many users have been asking how to move the add to cart block near the K2 Item image or just after the intro text.

You can do this in two methods. This howto will walk you through a few simple steps that will move the add to cart.

1. Using Plugin tag

We have introduced a plugin tag/syntax that can be added to your K2 Content. K2Store will recognise the tag and insert the cart there automatically.

Go to Joomla administrator->K2store->Options->Cart settings
Set the Add to cart placement param to Within Article content using tags.

Then go to K2 and open an existing product/item or create a new one.
in the content, use the following tag:

{k2storecart}

You can place this tag anywhere in the content.

2. Template override

CAUTION:  This method requires you to  have atleast a basic knowledge of the html or PHP code, just to interpret and understand atlest the <?php if...endif;?> block, so that you can edit the code correctly.

You first need to override the K2's template. To do that you must copy a few files. So you should have FTP access to your site. Use an FTP client like FileZilla for handling file operations.

Step 1: Copy the following folder

/components/com_k2/templates/default

to

 /templates/YOUR_TEMPLATE/html/com_k2/

 

NOTE: Some templates come with style support to K2. Such templates will already have a com_k2 folder inside your html folder. In this case, you do not have to copy the folder.

Step 2: Open

/templates/YOUR_TEMPLATE/html/com_k2/default/item.php

 

The item.php is used to display a single K2 Item. In this file, locate the following code.

<?php echo $this->item->event->K2AfterDisplay; ?>

Cut this line (shortcut key in Windows/Linuux: Ctrl+X).

This is the line that inserts K2Store addtocart block.

Let us assume that you want to display the Add to cart button, price and the quantity input box right after the image.

Around line 216 to 237, you will find the following block of code:

 

<?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
      <!-- Item Image -->
      <div class="itemImageBlock">
          <span class="itemImage">
              <a class="modal" rel="{handler: 'image'}" href="/<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
                  <img src="/<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
              </a>
          </span>

          <?php if($this->item->params->get('itemImageMainCaption') && !empty($this->item->image_caption)): ?>
          <!-- Image caption -->
          <span class="itemImageCaption"><?php echo $this->item->image_caption; ?></span>
          <?php endif; ?>

          <?php if($this->item->params->get('itemImageMainCredits') && !empty($this->item->image_credits)): ?>
          <!-- Image credits -->
          <span class="itemImageCredits"><?php echo $this->item->image_credits; ?></span>
          <?php endif; ?>

          <div class="clr"></div>
      </div>
      <?php endif; ?>

right after this block, add this line:

<?php echo $this->item->event->K2AfterDisplay; ?>

 

Save your file and visit your product page. Voila... you have successfully moved your add to cart block.

You can move the line whereever you wanted. It depends on your preference.

You can even have this line at multiple places so that the cart block is displayed at multiple times.

Moving Add to cart block in Category Items Display

You have to edit

 /templates/YOUR_TEMPLATE/html/com_k2/default/category_item.php.

 

The rest of the process is similar.

You only have to move the line

<?php echo $this->item->event->K2AfterDisplay; ?>

to a place you like.

 

NOTE: Sometimes, your template may be using a different K2 Sub-template instead of the default. For example, the JA_RAVE template from Joomlart has two different subtemplates - ja_rave, ja_rave_blog.

If you use these sub-templates, then you have to edit the item.php in these sub-templates folder as well.

Tuesday, 15 January 2013 22:24

Common Errors with Authorize.net

Published in Documentation

When using Authorize.net with your store, you may encounter some specific errors when attempting to authorize or collect payment for credit transactions. Below is a list of common processing errors, as well as some possible troubleshooting tips:

Response: "This account has not been given the permission(s) required for this request"

You may receive this error if you have recently switched to Authorize.net's AIM method. If this is the case, you will need to log in to your Authorize.net account, go to Settings, and select API Login ID and Transaction Key.

There, you can acquire your API Login and your Transaction Key, which are used with Authorize.net's AIM method. Replace the login and password in your store with your API Login and Transaction Key.

Response: "This transaction cannot be accepted"

A common reason for this error is that the Authorize.net API ID and Transaction Key programmed into your store are invalid. You'll need to log in to your Authorize.net account, retrieve a new, valid API ID and Transaction Key, and enter them into the gateway integration settings within your Volusion store.

 

Response: "... Card declined. Change payment info"

Be sure that your Authorize.net account is not set to Test mode. You must contact a technical support or account representative at Authorize.net to confirm this information and/or have your account removed from Test mode.

Response: "Address for Ship to required"

Make sure that your Authorize.net account is not configured to require any shipping address information to be passed to it when processing a transaction:

    Log in to your Authorize.net account.
    Click on Settings.
    Click on Payment Form under the Transaction Submission Settings section.
    Click on Form Fields.
    Look for the Shipping section and deselect the Required Column for all Shipping Information setting.
    Save changes.