BigCommerce - Hosted Ecommerce Software by Interspire

Interspire Forum

 
Go Back   Interspire Forum > Interspire Shopping Cart Community Forum > News and Product Updates

Closed Thread
 
Thread Tools Display Modes
  #21  
Old 03-18-2009, 12:05 PM
Chris B (Interspire Staff) Chris B (Interspire Staff) is offline
Administrator
 
Join Date: Apr 2007
Location: Sydney, Australia
Posts: 663
Default

IWP 5.0. The entire comments feature, Twitter integration etc is all module/addon based.

The events driven framework is really powerful stuff and it's something a few of us schemed up in a working group. It works similar to Javascript in that events are bound/triggered. Your addon can set a priority, you can cancel other addons from running for an event, you can override our default behavior etc.

Don't want to go in to it too much here, but here's a bit of an overview I've just whipped up from memory (also a little bit of an insight in to the direction I plan to have the code take in ISC)
PHP Code:
<?php
class Model_Customer extends Model
{
    public function 
insert($data)
    {
        
// Saving functionality
        
        
if(!$this->event->trigger('model_customer_insert'$data)) {
            
// Addon says cancel the event, so return without saving
            
return false;
        }
        
        
// Perform our actual saving here
    
}
}

class 
Addon_Example extends Addon
{
    public function 
registerListeners()
    {
        
$this->event->listen('model_customer_insert', array(
            
$this,
            
'customerSaveHook'
        
));
    }
    
    public function 
customerSaveHook(InterspireEventData $event)
    {
        if(
$event->data['custfirstname'] == 'Test') {
            
// Prevent any other addons hooking in to this hook from running running
            // So if you had two listeners for the 'model_customer_insert' hook and this
            // fired first, it would prevent the other from running.
            
$event->stopPropagation();
        }
        else if(
$event->data['custfirstname'] == 'Example') {
            
// Stop our "standard functionality" happening. Will cause the $event->trigger()
            //to return false
            
$event->preventDefault();
        }

        
// Modify the last name of the customer before the save
        
$event->data['custlastname'] = 'Change the customer\'s last name';
    }
}
?>
  #22  
Old 03-18-2009, 03:02 PM
websnail + websnail is offline
Interspire Customer
 
Join Date: Jul 2008
Posts: 1,548
Default

Quote:
Originally Posted by Chris B (Interspire Staff) View Post
IWP 5.0. The entire comments feature, Twitter integration etc is all module/addon based.

The events driven framework is really powerful stuff and it's something a few of us schemed up in a working group. It works similar to Javascript in that events are bound/triggered. Your addon can set a priority, you can cancel other addons from running for an event, you can override our default behavior etc.
So, in a nutshell using PHP's Object Orientated Programming approach that's been around from version 5.x

Makes sense...

Does that mean you're going to have an API then?
  #23  
Old 03-18-2009, 07:26 PM
lulu51 + lulu51 is offline
Interspire Customer
 
Join Date: Feb 2009
Posts: 170
Default

Hi,
V4.06
front_language.ini
line 504
InvoiceSalesTaxIncluded =

incomplete line

lucien
  #24  
Old 03-18-2009, 07:45 PM
lulu51 + lulu51 is offline
Interspire Customer
 
Join Date: Feb 2009
Posts: 170
Default

Hi,
V 4.05
IncludedInvoiceTax = "Inclus %s"

In V4.06 this value no longer exists?
lucien
  #25  
Old 03-18-2009, 09:27 PM
dlever + dlever is offline
Interspire Customer
 
Join Date: Mar 2009
Posts: 65
Default

found out that the royal mail mod does not work with 4.06
  #26  
Old 03-18-2009, 10:54 PM
steve22 + steve22 is offline
Interspire Customer
 
Join Date: Mar 2008
Location: Sydney Australia
Posts: 272
Send a message via Skype™ to steve22
Default

Quote:
Originally Posted by Chris B (Interspire Staff) View Post
We do have, as we already have in IWP and IEM, a fantastic event/plugin system that I hope we'll be able to bring to Shopping Cart which would allow you to add your own functionality to ISC or modify the default behavior simply by writing a custom plugin - and not touching any of the core itself.

That would be awesome and in my eyes the best cost saving feature IS could implement, it's exactly how PrestaShop works and it would makes things so much easier.
__________________
4Sprung Pty Ltd The shopping cart specialist since 1997.
------------------------------------------------------------------------
Email 4sprung@gmail.com with a detailed brief for a quote or check us out online at http://www.4sprung.com.au/ or our module shop at www.module-shop.com

Follow us on Twitter or join us on Facebook

We also offer ISC hosting on reliable servers in Australia and the US with Plesk 9 and cPanel control panel. All server set ups are linux based and optimized for ISC. As we host our own ISC sites on the server rest assured our up-time is excellent and we make sure the average server load is always way below 30%.

WE GUARANTEE ALL OF OUR WORK

Some of the Modules and modifications we have created:
• Store Locator
e-parcel export
• PayPal surcharge mod
• Incremental shipping fees
• Shipping Insurance
• PayPal subscriptions
• SecurePay payment
• Product level Discount by customer group
• Referrals including statistics
• Automatic status change if tracking number is barcode scanned
• Sync Interspire products with ecommercetemplates.com shopping cart
• Back End credit card facility for phone orders
• sms notification for tracking number
• Minimum Order (price or quantity) Modification
GetPrice.com.au data export and feed module
shopping.com data feed module
myshopping.com data feed module
• Invoice Modification
Product Variation Modification
• LayBy Turn Key Solution
• Donation Modification
• Serial Number Distribution System
• Paid Option for embroidery on item
• Quick Buy 2
• Dynamic JS Banner Manager
  #27  
Old 03-19-2009, 12:52 AM
websnail + websnail is offline
Interspire Customer
 
Join Date: Jul 2008
Posts: 1,548
Default

Quote:
Originally Posted by dlever View Post
found out that the royal mail mod does not work with 4.06
Can I just clarify that this is one user reporting a problem and I'm working on this in the Advanced Royal Mail thread

I've just upgraded to 4.0.6 and been unable to recreate the issue so at this point I'm 95% confident that the mod is 4.0.6 compatible.
  #28  
Old 03-19-2009, 12:55 PM
tonybarnes + tonybarnes is offline
Interspire Customer
 
Join Date: Dec 2008
Posts: 1,285
Default

We've just spotted that product reviews have broken - submitting a ticket now.

Anyone else got this?

Looking at the files, it's handled completely differently now, so I'm at a loss to where it's fallen apart
__________________
www.savant-health.com
  #29  
Old 03-19-2009, 01:27 PM
websnail + websnail is offline
Interspire Customer
 
Join Date: Jul 2008
Posts: 1,548
Default

Quote:
Originally Posted by tonybarnes View Post
We've just spotted that product reviews have broken - submitting a ticket now.

Anyone else got this?

Looking at the files, it's handled completely differently now, so I'm at a loss to where it's fallen apart
Seems to be something changed with the pagination... As a workaround you could set this setting (under "Store Settings") to a high number "Product Reviews Per Page:" to avoid the pagination.
  #30  
Old 03-19-2009, 01:39 PM
websnail + websnail is offline
Interspire Customer
 
Join Date: Jul 2008
Posts: 1,548
Default

Just checked my SVN history... You might want to check that you have updated all the theme template files because there were a bunch of new ones added and a couple of changes...

Looking at your site I'm guessing that's a custom theme with a lot of work in it... I'd definitely recommend diff()ing the files to see if there's any new codes as it does indeed look like they've changed a lot in there.


Yep... confirmed... You have an old template file here:
templates/default/Panels/ProductReviews.html

Update that and you should find it works.

Last edited by websnail; 03-19-2009 at 01:44 PM..
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump