Jump to content



Member Since 08 Nov 2008
Offline Last Active Yesterday, 07:39 PM

#302573 Landing Page After Placing Order - How To.. Diy?

Posted by tbirnseth on 11 June 2018 - 09:09 PM

Yes, just add a new block or grid depending on how you want it to appear.


Using the layout manager, you can place the block anywhere you want on the page.

Suggest either very top or very bottom (below other content).  It's really easy.  Just like any other block.  Just use html content and you can then include the order_id in any links you use by using {$order_data.order_id}, etc...  All the normal $order_data variables are there.

#302421 Display Additional Text For Out Of Stokc Products

Posted by tbirnseth on 06 June 2018 - 07:21 PM

Change the "wrapper" to nothing and the block name will not appear.  If you want it to appear as a titled block then just include the following as the first line within the condition.

{include file="common/subheader.tpl" title="Your title here"}


This will insert an h3 tag (could be an h5 I don't remember) with your title text.

#302375 Display Additional Text For Out Of Stokc Products

Posted by tbirnseth on 05 June 2018 - 07:40 AM

And there are probably 10 more ways to skin this cat! :-)

#302357 Display Additional Text For Out Of Stokc Products

Posted by tbirnseth on 04 June 2018 - 07:35 PM

As with most things in cs-cart, there are several things you can do (or ways you can change it).


1) Create an override of the product_data.tpl hook "products:out_of_stock_block" and change the variable {$out_of_stock_text} to be what you want.


2) Use jQuery "append()" function to add to the existing text in the id="out_of_stock_info_{$obj_prefix}{$obj_id} span tag.  I.e. append something like: "This item may be available in one of our stores".


3) Use jQuery to replace the above with something like "This item is not in stock in our online store but may be available at one of our locations".


If it were me, I'd probably use #2 or #3 rather than try to manage any future changes that might occur to this block using code similar to (UNTESTED) below which would be the hook file:

design/themes/[YOUR THEME]/templates/addons/my_changes/hooks/products/out_of_stock_block.post.tpl

{if $details_page}
  {** Set a new lang var named 'my_new_out_of_stock_text' **}
  <script type="text/javascript">
    {* This will replace the standard text with the text from 'my_new_out_of_stock_text' *}

#302136 Issue With Order Id

Posted by tbirnseth on 29 May 2018 - 11:49 PM

Yes there is.  It is referenced all over the place in various tables.  Sometimes by 'order_id' and sometimes by 'object_id'.
I'd find/fix the root of the problem rather than trying to treat the symptom.  Blank is okay, it just means it wouldn't be updated.  I think it gets set to blank if the settings are changed and it is less than or equal to the current auto_increment value from the orders table (not verified).

#301914 Gdpr Addon For 4Xx

Posted by tbirnseth on 22 May 2018 - 09:43 PM

I realize these aren't specific questions for your addon.  Just trying to clarify what I (as an addon provider) need to do to ensure my EU clients are in compliance.  I know that opt-in checkboxes need to be unchecked by default but outside of that, who is responsible for ensuring that (for example) Klavio is authorized to collect personal data for a customer on a site (especially given the data collection starts when they first enter the site)?  How about navigation tracking based on IP that may start before any dialog appears to the customer?  I'm assuming any tracking script would not be enabled until the user has opt-d in?


When I go to demo.cs-cart.com (V4.7.4) the home page has no dialog as to whether I authorize them to transmit or collect any personal info like IP.  I guess it's possible that they don't use GA for the demo site but I'd bet they track my IP internally and that it's stored in the sessions table as well as the statistics data; but how would this be handled?  I can switch this conversation over to the general GDPR thread if you like, don't want to pollute your addon functionality with basics that should be in the core.  Maybe the demo site should enable GA so we can all see how it's going to appear to customers.

#301342 Free Amazon Cloud Hosting For Cs-Cart And Multi-Vendor

Posted by tbirnseth on 08 May 2018 - 05:41 PM

Hey, guys!


This is a kind reminder.


This topic has its name and it's about Amazon free hosting offer. Please stick to it. Not about simtechdev.com, not about Mr. Maksim Komonov. About AWS. Ok?


1. Installing CS-Cart to Amazon is complicated - no doubt about it (regardless the plan).


2. We've created a manual how to do it the right way - true.


3. If it's not comprehensive enough, please advice and we'll improve it.


4. Try installing CS-Cart or Multi-Vendor to Amazon yourself and share your experience.


5. Nothing bad in making money if you are Amazon, by the way. Actually, that's what each business is about...


6. Price is not Amazon competitive advantage, but the highest security, quality, flexibility and scalability (both size and technological)


7. Regarding "advertising" and "the same company". While scrolling down the Insta or FB feed you see hundreds of engaging messages, but you don't write anyone to complain and to stop annoying you. You consider and make your decision to look or to skip. Guys, people are smart enough to sort things out. The point for the user is - "How can I use it?"


Now, let's come back to the topic, shall we? And be constructive like extrarius. I'll put this phrase into the signature one day.


Did anyone install CS-Cart to Amazon? How long did it take you?


So stick to the topic and offer your free info but don't offer your services in this thread.  You've done this a couple of times now (you personally) related to this topic and related to SMTP services.


Why would you recommend something that's free but won't work out of the box and/or the majority of merchant skills won't be able to work with it?


This is a community forum, not a Simtech forum.

#301341 Cs-Cart Cannot Handle High Traffic

Posted by tbirnseth on 08 May 2018 - 05:38 PM

All depends on your needs, your expertise, your willingness to pay for support and your desire to do detailed research.  Personally, I stick with Apache since it's tried and true for decades even if it has a bit more overhead than some others.

#301272 Site Down

Posted by tbirnseth on 07 May 2018 - 08:27 PM

The sessions table was crashed which probably means that mysqld died for some reason or other.

#301270 Free Amazon Cloud Hosting For Cs-Cart And Multi-Vendor

Posted by tbirnseth on 07 May 2018 - 08:13 PM

Quit advertising in the general forums but throwing out bait and the offering your services to do it.  These forums are intended to be for user questions  and answers (sometimes the answers offer services but are initiated by merchants). 


Putting out info about some 3rd party service being free and then describing how difficult it is and offering your services is NOT conducive to a community forum. 


Why not just put your ad were it belongs?  I.e. the Third Party Services section?  It's bad enough that Simtech has a banner ad on the 3rd party services section.  But now polluting the general forums with your advertising is getting annoying.

#300573 Cs-Cart Upgrade 4.3.5-4.3.6 Problem

Posted by tbirnseth on 23 April 2018 - 12:05 AM

That's a lot of memory.  Make sure you do NOT have DEBUG enabled.

You might also try a REPAIR on your database.

#299939 Product End Date?

Posted by tbirnseth on 10 April 2018 - 01:04 AM

Not out of the box.  Would either require custom development to add that field to the product and then hooks to prevent the product from showing if outside the parameters.


An alternative might be (if you can identify by some attribute) to change the status of a product to hidden if your_condition is met and the time from creation to now exceeds your limit.

#299930 Php Warning: Strpos():

Posted by tbirnseth on 09 April 2018 - 08:54 PM

Looks like a chunk of my posting got dropped.  There should have been a 



    $stripped = str_replace(array("\r\n", "\r", "\n", "\t"), ' ', $text),;
    if (strlen($stripped) > $limit) {
        $pos_end = strpos($stripped, $limit);

       if($pos_end !== false)
            $text = trim(substr($text, 0, $pos_end)) . $ellipsis;



Note that in the above, it's possible for the returned text to be less than 200 chars given that any "\r\n" chars (2) will be evaluated against the 200 as a single char..

#299864 http://schema.org/

Posted by tbirnseth on 08 April 2018 - 08:34 PM

But if it's integral to a well functioning store, it should be included in the core cart.

#299823 Bitcoin Module Bitkassa Integration

Posted by tbirnseth on 06 April 2018 - 10:14 PM

Be careful...  Many "developers" are providing cryptocurrency modules for alternative currencies and they then get a royalty for any transactions performed.  Many of these are not BitCoin.  BitCoin is one cryptocurrency and there are now 1000's of others.


Just be sure you know what you're buying and that it is indeed something you want to expose yourself and your customers to.  A true BitCoin integration should be pretty reasonable to do.