Jump to content

 

ibaker

Member Since 23 Oct 2006
Offline Last Active Jul 19 2020 01:48 AM
-----

#289442 How Can I Fix Default Display Issue

Posted by ibaker on 23 November 2017 - 05:26 AM

One issue...it also made the top My Account drop down go off the page. So for anyone else, to isolate it to just the My Cart drop down the css code needs a top-cart-content added to it. Such as:

.top-cart-content .ty-dropdown-box__content {
right: auto;
left: 0;
}



#197423 Cart-Power Add-On: Auction

Posted by ibaker on 20 November 2014 - 12:44 AM

I have just purchased this great addon from Cart-Power and I must say that I am very impressed with it. It is brilliant and will add a new dimension to my store...thanks Cart-Power

I also purchased their Latest Xenforo Threads addon and will down the track some time get him to develop a single login system joining both my CS-Cart Store and my Xenforo Forums so as to provide a total solution for my customers.

If I may make a suggestion for further enhancements to the Auction addon, of which I would pay another $99 for, would be the ability for customers to create their own auctions from which I could charge a % fee for successful sales. This would provide the best of both worlds for my customers.

Another enhancement would be an Auction Block that could be added to the store's homepage listing the auctions by order of those ending from the soonest to the latest including the countdown timer being shown under the product in the block. Would be a great way to promote auctions on your site.

Anyway, just some ideas and I can't wait to open my new store and see the Auction addon getting used, thanks again Cart-Power


#191620 Can't Edit Theme After Upgrade To 4.2.2

Posted by ibaker on 07 September 2014 - 02:30 AM

And here is another one:
Attached File  9.jpg   71.49KB   93 downloads

They just keep on coming

Now, a person has to spend days and days and days fixing up ALL the bugs with CS-Cart that when it comes time to update to a new version their site is destroyed by all the bug fixes that the update stuffs up only to bring more bugs from an update to add to the list of previous bugs...completely destroying any faith a person or potential customer has with using CS-Cart.

They REALLY need to wake up to themselves and be either software developers or software hashes extorting money from you for their own pockets whilst destroying your sanity.

Do yourself a favor CS-Cart...get your hands on a copy of Xenforo and have a real good look at how they have done things...if you were to start from scratch and do what they have done you will potentially not only have a huge number of satisfied customers but a huge Addon developer interest and new customers flocking to get CS-Cart because it is so EASY to use.

I have been using Xenforo since its inception and it is the most remarkably developed piece of software I have seen in 34 years of IT


#191082 Can't Edit Theme After Upgrade To 4.2.2

Posted by ibaker on 30 August 2014 - 02:20 AM

I REALLY AM GETTING SICK AND TIRED OF THIS F'N CS-CART CRAP

Every single time they stuff things up and I am pulling my hair out trying to fix the bugs that are caused by trying to fix other bugs

here is an example of what I mean with my opening post of the theme stuff up by cs-cart v4.2.2
Attached File  1.jpg   191.64KB   136 downloads

The extra css of removing the padding at the top is in there, it is in the facebook theme file and I have deleted all the var/cache and the gap is still showing. With 4.2.1 it was gone with that extra css

AND as usual I bet if I ask them for help they will send the standard reply of PAY US first to fix our stuff up

I have been with cs-cart from their very beginning and it is like this every single bloody time...no wonder the Russians kill innocent people blowing them out of the sky because of their f'n stuff ups just like their software

I am so BLOODY frustrated with cs-cart


#191078 Can't Edit Theme After Upgrade To 4.2.2

Posted by ibaker on 30 August 2014 - 12:47 AM

Just upgraded from 4.2.1 to 4.2.2 and lost my theme changes in the facebook responsive theme. The extra css is still there when I try editing the theme but the extra css is not being applied to the theme like it was in 4.2.1.

I tried to edit it and now it want's me to save it as a new theme which I do but the changes are still not applied even after I select the new theme as the default one.

As usual with CS-Cart Attached File  036_faint.gif   4.55KB   64 downloads


#178827 Add Product Cost Price Field In Backend

Posted by ibaker on 05 March 2014 - 09:46 PM

I needed to have a product "Cost Price" field added next to the Price and List Price fields in the products area of the CS-Cart admin (not displayed in the shop front end) so I could record the last cost price of a product.

I am using CS-Cart v4.1.2 and thanks to brandonvd I was able to do it in v2.2.5 however there has been no update for v4.1.2 so I have adapted Brandon's tutorial for v4.1.2 and post it here to help others who may also want the same thing.

These changes will add an editable Cost field next to the Price field in the product list (Products -> Products) and also add an editable Cost field when creating or editing a product.

Attached File  1.jpg   54.47KB   191 downloads Attached File  2.jpg   24.11KB   195 downloads

NOTES:
1. This does include adding a couple of lines in a core CS-Cart file so if you update your CS-Cart version it will most probably overwrite the changes so you will need to reapply the changes again
2. This has some limitations such as:
a.) Not included in the field list of product data imports or exports
b.) Doesn't have separate cost field for product options
c.) and possibly some other areas that I don't have a need for personally so I haven't looked where to apply other changes.

Installation
1. We need to first create a Cost field in the cscart_products table of our database. So copy the following code and in phpMyAdmin select your database and paste the code in the SQL area and run it. Check that a new field "cost" has been added to your cscart_products table after the product_code field.
ALTER TABLE `cscart_products` ADD `cost` DECIMAL (10,2) AFTER `product_code` ;

2. Add a language entry for Cost in Administration -> Languages -> Translations. Add a new entry with these details:
Language variable: cost
Value: Cost

3. This is where we add some lines into a core CS-Cart file.
a.) Open the fn.catalog.php file located at \app\functions

b.) Find
'products.company_id',
and add after it
'products.cost',

c.) Find
'price' => 'price',
and add after it
'cost' => 'products.cost',

d.) Find
array(
			'name' => '[data][price]',
			'text' => __('price')
		),
and add after it
array(
	'name' => '[data][cost]',
	'text' => __('cost')
),

4. Open the manage.tpl template located at \design\backend\templates\views\products
a.) Find
<th width="45%"><a class="cm-ajax" href="{"`$c_url`&sort_by=product&sort_order=`$search.sort_order_rev`"|fn_url}" data-ca-target-id={$rev}>{__("name")}
and add after that
<th width="10%"><a class="cm-ajax" href="{"`$c_url`&sort_by=cost&sort_order=`$search.sort_order_rev`"|fn_url}" data-ca-target-id={$rev}>{__("cost")} ({$currencies.$primary_currency.symbol nofilter}){if $search.sort_by == "cost"}{$c_icon nofilter}{else}{$c_dummy nofilter}{/if}</a></th>

b.) Find
<th width="15%"><a class="cm-ajax" href="{"`$c_url`&sort_by=price&sort_order=`$search.sort_order_rev`"|fn_url}" data-ca-target-id={$rev}>{__("price")}
and change the 15% to 10%

c.) Find
<th width="15%"><a class="cm-ajax" href="{"`$c_url`&sort_by=list_price&sort_order=`$search.sort_order_rev`"|fn_url}" data-ca-target-id={$rev}>
and change the 15% to 10%

d.) Find
{include file="views/companies/components/company_name.tpl" object=$product}
</td>
and add after that
<td>
	<input type="text" name="products_data[{$product.product_id}][cost]" size="6" value="{$product.cost}" class="input-mini input-hidden" />
</td>

5. Open the update.tpl template located at \design\backend\templates\views\products
There are 2 options that you may like to use here. The first option places the Cost field above the List Price field in the Pricing/Inventory section of the product entry/edit page, as in the screen shot above. Option 2 places the Cost field above the Price field and moves the List Price field below the Price field keeping all the prices together as in this screen shot:
Attached File  3.jpg   40.68KB   119 downloads

OPTION 1
a.) Find
<div class="control-group">
	<label class="control-label" for="elm_product_code">{__("sku")}:</label>
	<div class="controls">
		<input type="text" name="product_data[product_code]" id="elm_product_code" size="20" maxlength="32"  value="{$product_data.product_code}" class="input-long" />
	</div>
</div>
and add after that
<div class="control-group">
	<label class="control-label" for="elm_cost">{__("cost")} ({$currencies.$primary_currency.symbol nofilter}):</label>
	<div class="controls">
		<input type="text" name="product_data[cost]" id="elm_cost" size="10" value="{$product_data.cost|default:"0.00"}" class="input-long" />
	</div>
</div>

OPTION 2
a.) Find
<div class="control-group {$no_hide_input_if_shared_product}">
	<label for="elm_price_price" class="control-label cm-required">{__("price")} ({$currencies.$primary_currency.symbol nofilter}):</label>
	<div class="controls">
		<input type="text" name="product_data[price]" id="elm_price_price" size="10" value="{$product_data.price|default:"0.00"|fn_format_price:$primary_currency:null:false}" class="input-long" />
		{include file="buttons/update_for_all.tpl" display=$show_update_for_all object_id='price' name="update_all_vendors[price]"}
	</div>
</div>
and add BEFORE that
<div class="control-group">
	<label class="control-label" for="elm_cost">{__("cost")} ({$currencies.$primary_currency.symbol nofilter}):</label>
	<div class="controls">
		<input type="text" name="product_data[cost]" id="elm_cost" size="10" value="{$product_data.cost|default:"0.00"}" class="input-long" />
	</div>
</div>

b.) Find
<div class="control-group">
	<label class="control-label" for="elm_list_price">{__("list_price")} ({$currencies.$primary_currency.symbol nofilter}) :</label>
	<div class="controls">
		<input type="text" name="product_data[list_price]" id="elm_list_price" size="10" value="{$product_data.list_price|default:"0.00"}" class="input-long" />
	</div>
</div>
Cut that code out and paste it in after
<div class="control-group {$no_hide_input_if_shared_product}">
	<label for="elm_price_price" class="control-label cm-required">{__("price")} ({$currencies.$primary_currency.symbol nofilter}):</label>
	<div class="controls">
		<input type="text" name="product_data[price]" id="elm_price_price" size="10" value="{$product_data.price|default:"0.00"|fn_format_price:$primary_currency:null:false}" class="input-long" />
		{include file="buttons/update_for_all.tpl" display=$show_update_for_all object_id='price' name="update_all_vendors[price]"}
	</div>
</div>

6. That's it...please test to make sure it is working ok

Hope you find this helpful and I encourage others to make their solutions available to everyone else


#178612 Free Invoice Template

Posted by ibaker on 03 March 2014 - 07:20 AM

If I could get my hands on a demo copy of the MV version I could create an "IF" statement that could pull the company number (and VAT number) from a language entry for you...it w3ould just need an IF statement that says "if vendor =1 then show this number OR if vendor=2 then show that number" etc


#178595 Free Invoice Template

Posted by ibaker on 02 March 2014 - 08:41 PM

Alan, I don't have the Multi Vendor version so I am not sure how you would be able to define a company number per vendor. I use a new language entry for the company number and I doubt there would be a seperate language per vendor.

Is there an extra company details field that is unique per vendor that could be used and referenced in the template?
Does each vendor have their own invoice template?...if so then you could define a separate language entry per vendor.
In MV can you define an extra company field?

Failing the above then I think the only thing you could do would be to remove the company number line in the template.

Are you an Australian company that has to have the company number shown by law? If so let me know and perhaps we could contact each other offline and see what I could do to help


#178575 Free Invoice Template

Posted by ibaker on 02 March 2014 - 07:26 AM

Hi Allan
see point 1 of the opening post


#178539 What Are People Using Other Than Searchanise On Cs4?

Posted by ibaker on 28 February 2014 - 10:46 PM

I have elasticsearch installed on my server which I use very very effectively with Xenforo forums...if anyone can advise how I could make use of that in CS-Cart v4.1.2 I would be extremely grateful...if so it sounds like it may be an option for others as well


#178363 Free Invoice Template

Posted by ibaker on 27 February 2014 - 02:51 AM

UPDATED 5th March 2014
I have created a new invoice template that I think looks better than the standard CS-Cart ones so I thought I would share them...we all need to help each other and share what we have done to personalise our installations so everyone can benefit. Cs-Cart uses two different invoice.tpl template files to email a copy of the invoice to both the Customer and to Admin plus they are used to view online by both the Customer and the Admin. These templates are for CS-Cart v4.1.2 (possibly for v4.? but not tested).

Attached File  1.gif   54.13KB   1848 downloads Attached File  inv.gif   38.33KB   1873 downloads Attached File  3.gif   52.47KB   1664 downloads

Both templates files are named the same (invoice.tpl) however they are located in 2 different places in your CS-Cart installation:
Customer (Customer.zip): \design\themes\basic\mail\templates\orders
Admin (Admin.zip): \design\backend\mail\templates\orders

The templates can be used just as they are or below are some steps that you may like to do that will enhance the templates even further

So to start with, dowload and unzip the attached 2 new template files:
Customer.zip
Admin.zip

1. Install new templates as they are
a.) Rename your current invoice.tpl templates that are located as above to invoice.BAK as backups
b.) Simply copy both new invoice.tpl files to the locations as above

2. Add Company Number
OPTION 1. Add Company Number by using new language entry
In Australia you have to display your Company or Business Number on your Invoice and perhaps other countries as well. If so then this OPTION OR OPTION 2 below (your choice) will display that number just below the "Invoice" text at the top right corner of your invoice.
a.) Add a new entry in Administration -> Languages -> Translations, with the following:
Language variable: company_number
Value: (your company number)
b.) Edit both Customer and Admin templates by replacing the {* Company No *} in the templates with:
{if __("company_number") !=""}
	<div style="font-size:11px; font-family: Tahoma,Arial; text-transform: uppercase;" nowrap="nowrap">
		<b>{__("company_number")}</b>
	</div>
{/if}

OPTION 2. Add Company/Tax Number by using the Tax field Registration Number
If you only have one Tax Registration Number and like in Australia, it is your Business Number, it is pointless having the Tax Number displayed at the bottom of the invoice with the Tax amount instead it can be removed from there and placed under the "Invoice" text at the top right corner of your invoice...this is where most Australian businesses place it.
a.) Edit both Customer and Admin templates by replacing the {* Company No *} in the templates with:
<div style="font-size:11px; font-family: Tahoma,Arial; text-transform: uppercase;" nowrap="nowrap">
	{if $order_info.taxes}
		{foreach from=$order_info.taxes item=tax_data}
			{if $tax_data.regnumber}<b>({$tax_data.regnumber})</b>{/if}
		{/foreach}
	{/if}
</div>
b.) To remove the tax number from also displaying in the subtotal section of the invoice find {* Tax Number *} and remove the following line:
{if $tax_data.regnumber}&nbsp;({$tax_data.regnumber}){/if}:&nbsp;

3. Banking Details (or payment details of a different kind)
We have a payment method called "Direct Deposit" set up in our shop which is the first payment method in the database (i.e. payment_id 1). So if a customer selects "Direct Deposit" as their payment method, we include our bank details on the invoice to make it easy for them to make their payment. If you also have a similar situation then then this may be of help.
a.) Look in the cscart_payments table in your database for the payment_id you have for direct deposit
b.) In the Customer invoice.tpl template, replace {* Bank details *} with:
{if $order_info.payment_id == 1}
	{* Bank details *}
	<td valign="top">
		<table border="0" cellspacing="2" cellpadding="2">
			<tr>
				<td colspan="2" nowrap><b>Bank Details for Direct Deposit:</b></td>
			</tr>
			<tr>
				<td width="5%"><b>Reference:</b></td>
				<td width="10%">Inv No {$order_info.order_id}</td>
			</tr>
			<tr>
				<td width="5%" nowrap><b>A/c Name:</b></td>
				<td width="10%"nowrap>(insert bank account name)</td>
			</tr>
			<tr>
				<td width="5%"><b>Bank:</b></td>
				<td width="10%">(insert bank name)</td>
			</tr>
			<tr>
				<td width="5%"><b>BSB:</b></td>
				<td width="10%">(insert bank branch identifier)</td>
			</tr>
			<tr>
				<td width="5%"><b>A/c No:</b></td>
				<td width="10%">(insert bank account number)</td>
			</tr>
		</table>
	</td>
	{* /Bank details *}
{/if}
c.) Replace the number 1 in the above code with the payment_id number that you got from your cscart_payments table in your database
d.) Replace the (insert...) places of the code with your own banking details

4. Add Office Use Only section in the Admin copy of the invoice
We like to have some Office Use Only printed fields on the invoice copy that we get emailed to ascertain the costs etc of that invoice before it gets files away. This addition adds those fields to the invoice instead of us having to stamp each one.
a.) In the Admin invoice.tpl template replace {* Admin Fields *} with the following code:
{* Admin only *}
<td valign="top">
	<table border="0" cellspacing="2" cellpadding="2">
		<tr>
			<td colspan="2" nowrap><b>Admin Only:</b></td>
		</tr>
		<tr>
			<td width="5%"><b>Total Paid:</b></td>
			<td width="10%">_____________</td>
		</tr>
		<tr>
			<td width="5%"><b>Product Cost:</b></td>
			<td width="10%">_____________</td>
		</tr>
		<tr>
			<td width="5%"><b>Shipping Cost:</b></td>
			<td width="10%">_____________</td>
		</tr>
		<tr>
			<td width="5%"><b>Bank Cost:</b></td>
			<td width="10%">_____________</td>
		</tr>
		<tr>
			<td width="5%"><b>Total Cost:</b></td>
			<td width="10%">_____________</td>
		</tr>
		<tr>
			<td width="5%"><b>Gross Profit:</b></td>
			<td width="10%">_____________</td>
		</tr>
	</table>
</td>
{* /Admin only *}

5. Extra Profile Fields
I like the customer to have the ability to add different companies for themself, a Bill To Company and a Shipping To Company, all as options. However, the built in CS-Cart ability to display these extra profile fields on an invoice is hampered as the template they use includes paragraph tags that adds spaces as well as field names. So this extra bit cleans that up so I can allow my customers to use the extra Company fields without hindering the display of the invoice. So my Administration -> Profile Fields look like this (note the fields I have ticked):

Attached File  5.gif   58.67KB   1339 downloads

To provide for the extra Company(s) on the invoice, you need to add an extra profile field called Company by this screen shot:

Attached File  4.gif   20.62KB   911 downloads

a.) Download and unzip the attached file Profile Fields.zip and then place that template into these two locations:
- \design\backend\mail\templates\profiles
- \design\themes\basic\mail\templates\profiles
b.) In both Customer and Admin invoice.tpl templates replace the {* Extra Invoice Fields B *} with the following code:
{include file="profiles/extra_invoice_fields.tpl" fields=$profile_fields.B}
c.) In both Customer and Admin invoice.tpl templates replace the {* Extra Invoice Fields S *} with the following code:
{include file="profiles/extra_invoice_fields.tpl" fields=$profile_fields.S}

6. That is all
After you have completed any changes to the invoice.tpl templates, upload them to their respective directories as in Step 1 and TEST

Hope this helps someone. If I get time soon I will be creating an MS Access front end that hooks into the CS-Cart tables so I can manage all the orders, inventory and costings (profit etc per order), and I will release that here for free if anyone wants that...but give me some time

Attached Files




#171969 Some Add-ons to Be Excluded from CS-Cart 4.1.1

Posted by ibaker on 20 November 2013 - 04:35 AM

I have desperately been wanting to understand how the recurring billing worked as I really need this...the problem WHY people perhaps didn't use it is because it didn't work properly in the first place plus it was far too hard to understand hence why there have been forum posts about it.

A much simpler system that just sends out an invoice every month (or so) automatically to a customer without all the hoo har about them joining a subscription program, end time etc etc etc etc would be much easier.