Jump to content

WebGuy's Content

There have been 5 items by WebGuy (Search limited from 04-Dec 19)


Sort by                Order  

#115817 New Fedex Api

Posted by WebGuy on 27 June 2011 - 05:39 PM in v1.x Configuration

Thanks Pavel,

I believe there is a difference between the testing api and production api, I did contact the FedEX developer support and they did supply me with the production API key and password. Sent to you via the Support system.

Thanks again.


Hello WebGuy,

These parameters are the following:

  • Authentication key
  • Authentication password

This is the info from the integration manual:

Testing
FedEx supplies a complete online operating environment with which to test your applications
against live FedEx servers. In order to execute test interactions, you must first include a test
account number, test meter number, authentication key, and password in your code. These
credentials are provided to registered developers.

You need to be registered to get these parameters.

---
Pavel Zyukin
CS-Cart Support team




#115709 New Fedex Api

Posted by WebGuy on 24 June 2011 - 07:28 PM in v1.x Configuration

I am in the middle of having CSCart support provide the new FedEX API for CSCart 1.3.5 SP4.
Has anyone implemented this and/or currently using the new FedEx API with 1.3.5 SP4?

CSSupport said in their details for implementation:

"I would like to note that 2 new settings will be added to the admin panel. These parameters are requested by the new FedEx API as authorization parameters. You will be able to get these ones by contacting FedEx."


You would think they'd at least tell me what these 2 new settings are and where I can find information on them?

So if anyone has already done this with the old version of CSCART, can you help me?
What are the 2 new settings?

Thanks,
WebGuy



#114010 Product Listing Sidebox

Posted by WebGuy on 02 June 2011 - 02:54 PM in v1.x Configuration

Really??

I wonder who the other one is...

Anyway, I've just have too much invested in 1.3.5sp4 to move, maybe someday...but you know what they say "if it ain't broke, don't fix it". :cool:



#113946 Product Listing Sidebox

Posted by WebGuy on 01 June 2011 - 11:27 PM in v1.x Configuration

Ok for those of you still using 1.3.5SP4 Here is what I did:

Create a new products.tpl file in customer/sideboxes

with this code:
{capture name="sidebox"}
<ul>
{foreach from=$menu_products item=product}
<li><a href="{$index_script}?{$target_name}=products&product_id={$product.product_id}">{$product.product}</a></li>
{/foreach}
</ul>

{/capture}
{include file="common_templates/sidebox.tpl" title=$lang.products content=$smarty.capture.sidebox icon="sidebox_icon_catalog.gif"}

next edit in include/common/customer_common.php
add this line of code:
include COMMON_DIR . 'products.php';

right under this line: include COMMON_DIR . 'topics.php';

next edit in include/common/products.php
(we're building the menu system for products here)
add this code right after: if ( !defined('IN_CSCART') ) { die('Access denied'); }

$menu_sortings = array (
	'code' => 'products.product_code',
	'avail' => 'products.avail',
	'product' => 'descr1.product',
	'position' => ($settings['General']['improved_product_search'] == 'Y') ? 'avail_products.position' : 'products_categories.position',
	'price' => 'prices.price',
	'list_price' => 'products.list_price',
	'weight' => 'products.weight',
	'amount' => 'products.amount'
);

$menu_directions = array (
	'asc' => 'asc',
	'desc' => 'desc'
);

$menu_sort_order = 'asc';

$menu_sort_by = 'product';
$menu_sorting = "ORDER BY " .$menu_sortings[$menu_sort_by]. " " .$menu_directions[$menu_sort_order];
$menu_fields = "products.product_id, descr1.product as product";
$menu_join = '';

$lang_code = !empty($lang_code) ? $lang_code : $cart_language;

$menu_join .= " LEFT JOIN $db_tables[product_descriptions] as descr1 ON descr1.product_id=products.product_id AND descr1.lang_code='$lang_code' ";
$menu_p_avails = array('Y');
$menu_c_avails = array('Y' , 'H');

$menu_avail_cond = (AREA == 'C') ? " AND $db_tables[categories].membership_id IN ('0', '$auth[membership_id]') AND $db_tables[categories].avail IN ('" . implode("','", $menu_c_avails) . "')" : '';

$menu_avail_cond .= (AREA == 'C' || defined('HTML_CATALOG')) ? " AND products.avail IN ('" . implode("','", $menu_p_avails) . "')" : '';
$menu_join .= "INNER JOIN $db_tables[products_categories] as products_categories ON products_categories.product_id=products.product_id INNER JOIN $db_tables[categories] ON $db_tables[categories].category_id=products_categories.category_id $menu_avail_cond";
$menu_products = db_get_array("SELECT $menu_fields FROM $db_tables[products] as products $menu_join GROUP BY products.product_id $menu_sorting");
$smarty->assign('menu_products', $menu_products);

Last go to your main.tpl and add this line to which ever side you'd like the product listings on:

{include file="side_boxes/products.tpl"}

Of course you'll have to adjust your style sheet if you want it to look different, and you can even make it look like your categories menu.

Hope this helps someone, but I think by now everyone is using the new version of CS-Cart, right? :rolleyes:



#113295 Product Listing Sidebox

Posted by WebGuy on 24 May 2011 - 09:13 PM in v1.x Configuration

Because I'm only selling 6-7 products I would like to replace the Category sidebox with a Product sidebox, which has the same style as the Category sidebox.

I know you can create a Product Listing in Listmania but that only lists the links to the products without the "sidebox style". So Listmania doesn't work for what I need

I created a sidebox/products.tpl file and this is my code so far:
However it's not pulling in the products?

What am I missing?

{capture name="sidebox"}
<ul>
{foreach from=$products item=product}
<li><a href="{$index_script}?{$target_name}=products&product_id={$product.product_id}">{$product.product}</a></li>
{/foreach}
</ul>

{/capture}
{include file="common_templates/sidebox.tpl" title=$lang.products content=$smarty.capture.sidebox icon="sidebox_icon_catalog.gif"}