Re: Pages start with </__body> tag, not parsing header
Posted: Thu Feb 07, 2013 5:24 pm
I am only uding CalGuy's ecommerce module along with cart, orders, products. Not any version of shop made simple.
Content management as it is meant to be
https://forum.cmsmadesimple.org/
Code: Select all
INTERNAL ERROR: Query failed - SELECT SQL_CALC_FOUND_ROWS C.*,PH.hierarchy_id FROM cms_module_products C LEFT JOIN cms_module_products_prodtohier PH ON PH.product_id = C.id WHERE C.status = 'published' ORDER BY random asc LIMIT 0, 3 -- Unknown column 'random' in 'order clause'Code: Select all
<!-- HFC_V3_PRODUCT_SUMMARY_SIMILAR_INLINE_REVD -->
{foreach from=$items item=entry}
<div class="store-similar-items">
{if count($entry->fields)}
{foreach from=$entry->fields key='name' item='field'}
{if $field->name == 'image'}
<a href="{$entry->detail_url}" class="item-link"><img class="item-image" src="{$entry->file_location}/{$field->value}" width="225" height="260" alt="{$field->value}"/></a>
<ul class="store-similar-list">
<li><strong>Item:</strong> <a class="summary-product-link" href="{$entry->detail_url}" class="item-link">{$entry->product_name}</a></li>
<li><strong>Price:</strong> {$currency_symbol}{$entry->price}</li>
{if isset($entry->categories)}
<li><strong>Category</strong>: {foreach from=$entry->categories item='category'}{$category->name}, {/foreach}</li>
{/if}
</ul>
{/if}
{/foreach}
{/if}
</div><!-- /store-similar-items -->
{/foreach}Code: Select all
{Products action='default' category=$category->name sortby='random' pagelimit='3' summarytemplate='hfc_v3_product_summary_similar_inline_revd'}Code: Select all
Error: at line 127 in file /home/pixelita/public_html/honfish/lib/smarty/sysplugins/smarty_internal_templatebase.php:
Message:
Unable to load template module_db_tpl 'Cart;addtocart_hfc_v3_add2cart'Code: Select all
<!-- CART: hfc_v3_add2cart -->
<div class="add2cart">
{if isset($cart_error)}
{cgerror}{$cart_error}{/cgerror}
{/if}
<div class="mycart">
{$formstart}
<input type="text" name="{$quantityname}" value="1" size="2" maxlength="2"/>
{if isset($attribute_count) && $attribute_count gt 0}
{foreach from=$attributes item='attrib'}
{$attrib->name}: {$attrib->control}
{/foreach}
{/if}
<input type="submit" name="{$submitname}" value="{$addtocarttext}"/>
{$formend}
</div><!-- /mycart -->
</div><!-- /add2cart -->CalGuy, if you are trying to drive me crazy, it will be a short trip!BTW. the sortby=random will not work in Products 2.18.4, it's a bug I have fixed but haven't released yet.