Amazon Web Services (AWS) today announced a significant
price drop for some of its storage services. In addition, it is also launched a
few new features for developers who want to use its Glacier cold storage
service. The new prices that most developers will likely care about are those
for S3, AWS’ main cloud storage service... ReadMore
Tuesday 22 November 2016
Monday 21 November 2016
MAGENTO : CAN’T LOGIN TO ADMIN-PANEL USING CHROME BROWSER.
While working on a local host, Magento Admin-Login, often appears to be working fine on Mozilla but not on chrome.
To resolve this problem just follow below steps:
To resolve this problem just follow below steps:
1)First login to admin-panel using firefox.
2)Go to System->Configuration
3)From left panel select web under General
4)Open the session cookie management tab and change the ‘Use HTTP Only’ to ” No”.
keep visiting our Blog or Visit this Link for more queries
2)Go to System->Configuration
3)From left panel select web under General
4)Open the session cookie management tab and change the ‘Use HTTP Only’ to ” No”.
keep visiting our Blog or Visit this Link for more queries
Friday 18 November 2016
Want to promote your products to the world? Choose Our Magento eCommerce Development services
Magento Services at AbacaSys
Magento
means flexible shopping. It is an open source e-commerce platform which
provides online merchants across the globe with a highly flexible shopping cart
system. It is also used to gain control over the look, feel and content, and
functionality of their online websites and store. Magento also offers powerful
online marketing system along with search engine optimization and efficient
catalog-management tools.
Well,
it is quite impressive but before you go hunting for the best Magento developer
company of your liking out there, understanding what all makes for the perfect
fit is necessary. There are always some important points that you should
consider before settling upon a particular provider. What are those?
Those are what you get with
AbacaSys.com:
Certified and Skilled Minds
This
is what AbacaSys is all about. You will find a lot of companies out there that
claim to be the masters of Magento. If they really are what they claim to be
then their developers must have the particular certification. This is awarded
to every deserving candidate who has successfully cracked the Magento exam.
This paper, although not the only criteria but is very important for you as it
enables you to gauge their skill and assess their value for your company.
AbacaSys is a Pure Magento
Development Company
Staying
weary of more generic web solutions companies may not be the worst thing to do.
There are probably millions of IT Solutions companies near you who would offer
web development services along with Magento. But be careful while making that
choice as Magento is quite huge and complicated. It is very much unlike its
competitors such as Prestashop or Open Cart. Magento requires more than a
regular PHP/web developer on the handling end. At AbacaSys.com we know the
complete architecture, existing features, and tools, customization techniques,
its standard practices, available patches and extensions, and performance
optimization, tools, etc. Therefore it is best if you go with a company that is
an expert in Magento. AbacaSys.com is a leader in Magento and their years of
experience in this community imparts them the ability to serve small, mid-size
and large businesses alike.
Now coming back to the big
question, how do you go about selecting the right Magento expert for your
business?
For
starters, our Magento expertise and experience speak for themselves:
• We offer Multi-Store implementation;
• More than 50 different types of API
integrations which include UPS Address verification API, Tracking, and Rating
API, etc.;
• You also get custom plug-in creation;
• Get ahead of your competition with our
performance optimization tools;
• Swift database integration from Wordpress
or ASPDNSF to Magento;
• SAP Integration and much more!
In
any case, it is always wiser for you to do your own research. Try to find out
what the company’s past work record has been and their awareness about the
several of challenges of e-Commerce.
If you decide to talk to the developers yourself, nothing could be better than
that. Make sure to find out about their work ethic and approach in terms of
communication, skill-set & experience level as well. Of course with
AbacaSys.com you can be certain that you won’t have to do any of that.
Thursday 10 November 2016
Simple way to Add Product To Cart Using Ajax in Magento
In this blog post, i am going to tell how to add products to
shopping cart using ajax and jquery.Shopping cart is an essential part
of any E-commerce website.
In magento the add to cart process is a simple form submit process, so the page get reloaded.Therefore, Ajax based Shopping Cart comes as a solution to fasten the buying process.
Ok lets start step by step.
1. First add jQuery on the Product Page.
2. Then Create folder jquery in root js folder.
3. Download jQuery from http://jquery.com/download/ and then place it inside (/js/jquery) folder.
4. Create a javascript file “noconflict.js” in the jquery folder (/js/jquery/noconflict.js).
5. Write this code inside noconflict.js file
jQuery.noConflict();
6. Open catalog.xml file in your theme folder [app/design/frontend/base/default/layout/catalog.xml in default magento theme]
7. Inside tag <catalog_product_view> write this code
<reference name=”head”>
<action method=”addItem”><type>js</type><name>jquery/jquery-1.6.4.min.js</name></action>
<action method=”addItem”><type>js</type><name>jquery/noconflict.js</name></action>
</reference>
8. Open any product page in frontend in a browser, through inspector, see if these two jquery files are included in your page.
9. Open the catalog/product/view.phtml file in your theme (rwd,base or any custom theme) in default magento theme,
the path is (app\design\frontend\base\default\template\catalog\product\view.phtml)
In this file you will find the javascript code as
productAddToCartForm.submit = function(button, url) {
if (this.validator.validate()) {
var form = this.form;
var oldUrl = form.action;
if (url) {form.action = url;}
var e = null;
try {
this.form.submit();}
catch (e) { }
this.form.action = oldUrl;
if (e) {throw e;}
if (button && button != ‘undefined’) {
button.disabled = true;
}}
}.bind(productAddToCartForm);
10. Change this code to
productAddToCartForm.submit = function(button, url) {
if (this.validator.validate()) {
var form = this.form;
var oldUrl = form.action;
if (url) {
form.action = url;
}
var e = null;
// Start of our new ajax code
if (!url) {
url = jQuery(‘#product_addtocart_form’).attr(‘action’);
}
url = url.replace(“checkout/cart”,”ajax/index”); // New Code
var data = jQuery(‘#product_addtocart_form’).serialize();
data += ‘&isAjax=1’;
jQuery(‘#ajax_loader’).show();
try {
jQuery.ajax({
url: url,
dataType: ‘json’,
type : ‘post’,
data: data,
success: function(data){
jQuery(‘#ajax_loader’).hide();
//alert(data.status + “: ” + data.message);
if(jQuery(‘.block-cart’)){
jQuery(‘.block-cart’).replaceWith(data.sidebar);
}
if(jQuery(‘.header .links’)){
jQuery(‘.header .links’).replaceWith(data.toplink);
}}
});
} catch (e) {
}
// End of our new ajax code
this.form.action = oldUrl;
if (e) {
throw e;
}
}
}.bind(productAddToCartForm);
11. Go to phtml file catalog/product/view/addtocart.phtml
and then find this code there
<button type=”button” title=”<?php echo $buttonTitle ?>” class=”button btn-cart” onclick=”productAddToCartForm.submit(this)”><span><span><?php echo $buttonTitle ?>
</span></span></button>
12. Change this to
<button type=”button” title=”<?php echo $buttonTitle ?>” class=”button btn-cart” onclick=”productAddToCartForm.submit(this)”><span><span><?php echo $buttonTitle ?></span></span></button>
<span id=’ajax_loader’ style=’display:none’><img src='<?php echo $this->getSkinUrl(‘images/opc-ajax-loader.gif’)?>’/></span>
13. Open your product page again and when you press the add to cart button, you should see a loading image and ajax request being sent.
14. Create a custom module with namespace Sneh_Ajax.(Register it in app/etc/modules and create its config.xml in app/code/local/Sneh/Ajax/etc folder).
15. In directory (app/code/local/Sneh/Ajax/controllers),create a file IndexController.php and add a function AddAction
<?php
require_once ‘Mage/Checkout/controllers/CartController.php’;
class Sneh_Ajax_IndexController extends Mage_Checkout_CartController
{
public function addAction()
{
$cart = $this->_getCart();
$params = $this->getRequest()->getParams();
if($params[‘isAjax’] == 1){
$response = array();
try {
if (isset($params[‘qty’])) {
$filter = new Zend_Filter_LocalizedToNormalized(
array(‘locale’ => Mage::app()->getLocale()->getLocaleCode())
);
$params[‘qty’] = $filter->filter($params[‘qty’]);
}
$product = $this->_initProduct();
$related = $this->getRequest()->getParam(‘related_product’);
/**
* Check product availability
*/
if (!$product) {
$response[‘status’] = ‘ERROR’;
$response[‘message’] = $this->__(‘Unable to find Product ID’);
}
$cart->addProduct($product, $params);
if (!empty($related)) {
$cart->addProductsByIds(explode(‘,’, $related));
}
$cart->save();
$this->_getSession()->setCartWasUpdated(true);
/**
* @todo remove wishlist observer processAddToCart
*/
Mage::dispatchEvent(‘checkout_cart_add_product_complete’,
array(‘product’ => $product, ‘request’ => $this->getRequest(), ‘response’ => $this->getResponse())
);
if (!$cart->getQuote()->getHasError()){
$message = $this->__(‘%s was added to your shopping cart.’, Mage::helper(‘core’)->htmlEscape($product->getName()));
$response[‘status’] = ‘SUCCESS’;
$response[‘message’] = $message;
//New Code Here
$this->loadLayout();
$toplink = $this->getLayout()->getBlock(‘top.links’)->toHtml();
$sidebar_block = $this->getLayout()->getBlock(‘cart_sidebar’);
Mage::register(‘referrer_url’, $this->_getRefererUrl());
$sidebar = $sidebar_block->toHtml();
$response[‘toplink’] = $toplink;
$response[‘sidebar’] = $sidebar;
}}
catch (Mage_Core_Exception $e) {
$msg = “”;
if ($this->_getSession()->getUseNotice(true)) {
$msg = $e->getMessage();
} else {
$messages = array_unique(explode(“\n”, $e->getMessage()));
foreach ($messages as $message) {
$msg .= $message.'<br/>’;
}}
$response[‘status’] = ‘ERROR’;
$response[‘message’] = $msg;}
catch (Exception $e) {
$response[‘status’] = ‘ERROR’;
$response[‘message’] = $this->__(‘Cannot add the item to shopping cart.’);
Mage::logException($e);
}
$this->getResponse()->setBody(Mage::helper(‘core’)->jsonEncode($response));
return;}
else{
return parent::addAction();
}}}
16. Save the file and go back to the product page.
17. Now add to cart using ajax should be working properly.
18. After clicking add to cart, you can see an alert box with success message.
Visit our Blog for daily updates or you can visit our website abacasys.com to check our services
In magento the add to cart process is a simple form submit process, so the page get reloaded.Therefore, Ajax based Shopping Cart comes as a solution to fasten the buying process.
Ok lets start step by step.
1. First add jQuery on the Product Page.
2. Then Create folder jquery in root js folder.
3. Download jQuery from http://jquery.com/download/ and then place it inside (/js/jquery) folder.
4. Create a javascript file “noconflict.js” in the jquery folder (/js/jquery/noconflict.js).
5. Write this code inside noconflict.js file
jQuery.noConflict();
6. Open catalog.xml file in your theme folder [app/design/frontend/base/default/layout/catalog.xml in default magento theme]
7. Inside tag <catalog_product_view> write this code
<reference name=”head”>
<action method=”addItem”><type>js</type><name>jquery/jquery-1.6.4.min.js</name></action>
<action method=”addItem”><type>js</type><name>jquery/noconflict.js</name></action>
</reference>
8. Open any product page in frontend in a browser, through inspector, see if these two jquery files are included in your page.
9. Open the catalog/product/view.phtml file in your theme (rwd,base or any custom theme) in default magento theme,
the path is (app\design\frontend\base\default\template\catalog\product\view.phtml)
In this file you will find the javascript code as
productAddToCartForm.submit = function(button, url) {
if (this.validator.validate()) {
var form = this.form;
var oldUrl = form.action;
if (url) {form.action = url;}
var e = null;
try {
this.form.submit();}
catch (e) { }
this.form.action = oldUrl;
if (e) {throw e;}
if (button && button != ‘undefined’) {
button.disabled = true;
}}
}.bind(productAddToCartForm);
10. Change this code to
productAddToCartForm.submit = function(button, url) {
if (this.validator.validate()) {
var form = this.form;
var oldUrl = form.action;
if (url) {
form.action = url;
}
var e = null;
// Start of our new ajax code
if (!url) {
url = jQuery(‘#product_addtocart_form’).attr(‘action’);
}
url = url.replace(“checkout/cart”,”ajax/index”); // New Code
var data = jQuery(‘#product_addtocart_form’).serialize();
data += ‘&isAjax=1’;
jQuery(‘#ajax_loader’).show();
try {
jQuery.ajax({
url: url,
dataType: ‘json’,
type : ‘post’,
data: data,
success: function(data){
jQuery(‘#ajax_loader’).hide();
//alert(data.status + “: ” + data.message);
if(jQuery(‘.block-cart’)){
jQuery(‘.block-cart’).replaceWith(data.sidebar);
}
if(jQuery(‘.header .links’)){
jQuery(‘.header .links’).replaceWith(data.toplink);
}}
});
} catch (e) {
}
// End of our new ajax code
this.form.action = oldUrl;
if (e) {
throw e;
}
}
}.bind(productAddToCartForm);
11. Go to phtml file catalog/product/view/addtocart.phtml
and then find this code there
<button type=”button” title=”<?php echo $buttonTitle ?>” class=”button btn-cart” onclick=”productAddToCartForm.submit(this)”><span><span><?php echo $buttonTitle ?>
</span></span></button>
12. Change this to
<button type=”button” title=”<?php echo $buttonTitle ?>” class=”button btn-cart” onclick=”productAddToCartForm.submit(this)”><span><span><?php echo $buttonTitle ?></span></span></button>
<span id=’ajax_loader’ style=’display:none’><img src='<?php echo $this->getSkinUrl(‘images/opc-ajax-loader.gif’)?>’/></span>
13. Open your product page again and when you press the add to cart button, you should see a loading image and ajax request being sent.
14. Create a custom module with namespace Sneh_Ajax.(Register it in app/etc/modules and create its config.xml in app/code/local/Sneh/Ajax/etc folder).
15. In directory (app/code/local/Sneh/Ajax/controllers),create a file IndexController.php and add a function AddAction
<?php
require_once ‘Mage/Checkout/controllers/CartController.php’;
class Sneh_Ajax_IndexController extends Mage_Checkout_CartController
{
public function addAction()
{
$cart = $this->_getCart();
$params = $this->getRequest()->getParams();
if($params[‘isAjax’] == 1){
$response = array();
try {
if (isset($params[‘qty’])) {
$filter = new Zend_Filter_LocalizedToNormalized(
array(‘locale’ => Mage::app()->getLocale()->getLocaleCode())
);
$params[‘qty’] = $filter->filter($params[‘qty’]);
}
$product = $this->_initProduct();
$related = $this->getRequest()->getParam(‘related_product’);
/**
* Check product availability
*/
if (!$product) {
$response[‘status’] = ‘ERROR’;
$response[‘message’] = $this->__(‘Unable to find Product ID’);
}
$cart->addProduct($product, $params);
if (!empty($related)) {
$cart->addProductsByIds(explode(‘,’, $related));
}
$cart->save();
$this->_getSession()->setCartWasUpdated(true);
/**
* @todo remove wishlist observer processAddToCart
*/
Mage::dispatchEvent(‘checkout_cart_add_product_complete’,
array(‘product’ => $product, ‘request’ => $this->getRequest(), ‘response’ => $this->getResponse())
);
if (!$cart->getQuote()->getHasError()){
$message = $this->__(‘%s was added to your shopping cart.’, Mage::helper(‘core’)->htmlEscape($product->getName()));
$response[‘status’] = ‘SUCCESS’;
$response[‘message’] = $message;
//New Code Here
$this->loadLayout();
$toplink = $this->getLayout()->getBlock(‘top.links’)->toHtml();
$sidebar_block = $this->getLayout()->getBlock(‘cart_sidebar’);
Mage::register(‘referrer_url’, $this->_getRefererUrl());
$sidebar = $sidebar_block->toHtml();
$response[‘toplink’] = $toplink;
$response[‘sidebar’] = $sidebar;
}}
catch (Mage_Core_Exception $e) {
$msg = “”;
if ($this->_getSession()->getUseNotice(true)) {
$msg = $e->getMessage();
} else {
$messages = array_unique(explode(“\n”, $e->getMessage()));
foreach ($messages as $message) {
$msg .= $message.'<br/>’;
}}
$response[‘status’] = ‘ERROR’;
$response[‘message’] = $msg;}
catch (Exception $e) {
$response[‘status’] = ‘ERROR’;
$response[‘message’] = $this->__(‘Cannot add the item to shopping cart.’);
Mage::logException($e);
}
$this->getResponse()->setBody(Mage::helper(‘core’)->jsonEncode($response));
return;}
else{
return parent::addAction();
}}}
16. Save the file and go back to the product page.
17. Now add to cart using ajax should be working properly.
18. After clicking add to cart, you can see an alert box with success message.
Visit our Blog for daily updates or you can visit our website abacasys.com to check our services
Monday 31 October 2016
Magento Website Development and Hosting | Abacasys.com
We are professional in Magento
web development, eCommerce website design development services.
Visit our website Abacasys.com for more information.
Visit our website Abacasys.com for more information.
Tuesday 27 September 2016
Wednesday 21 September 2016
Reason why you choose AWS ?
Amazon Web
Services abbreviated as AWS is a gathering of web service that together make up
a cloud computing platform, offered over the internet by Amzon.com. The most
focal & well-known of these services are Amazon EC2 & Amazon S3.
Amazon web service is a package of hosting products that target to take the difficulty out
of traditional hosting solutions. Services like Dropbox and websites such as Reddit
all uses AWS. AWS isn't only for the Dropboxes and Reddits of the world,
however. You and I can have two or three servers on AWS and productively as
well. We as of late have been utilizing AWS to have the web backend for an
undertaking web application we worked for the home loan adjusting industry,
which more often than not keeps running on high activity amid the available
time and a touch of less movement in the off hours.
For transient
occasions this way, AWS bodes well. The activity is high amid the day, and
after that will decrease off, permitting us to deal with the measure of server
calculation expected to have the backend without being tied into a yearlong
contract, or paying for force we don't as a matter of course need.
I've
accumulated a couple of our purposes behind picking AWS and clarified them
here. So how about we make a plunge and see why AWS is superior to the
opposition, for of all shapes and sizes clients.
On
the Go Pricing
Amazon took a
refreshing approach to pricing its hosting when launching AWS. Every service is
"a la carte", meaning you pay for what you use. This makes a lot of
sense for server infrastructure, as traffic tends to be very bursty, especially
the larger the site is.
Customary
equipment, generally, goes unutilized for 90% of its lifecycle. AWS manages
this issue by keeping it shoddy amid the moderate times.
The Free Tier
Main reason
why people do not use AWS is lack of knowledge. EC2 is not traditional hosted
solution. EC2 basically designed to bring server online and offline very fast
as needed. Because of this, many IT professional were cautious of using EC2 because
of the cost associated with "playing
around" to figure it out.
The
complementary plan, which gives enough credit to run an EC2 small scale
occasion all day, every day all month, determines this. It comes with features like S3 storage, EC2 compute
hours, Elastic Load Balancer time, and much more. This gives developers a
chance to try out AWS's API in their software, which improves their product, as
well as binds them to AWS, which benefits Amazon over the long haul.
Performance
There's no denying the speed of AWS. The Elastic Block Storage is nearly
as fast as S3 and also provides different features. EC2 calculate units give
Xeon-class performance on an hourly rate. The
reliability is better than most private data centers in the world, and
if there is a issue, you're usually still online, but with reduced capacity.
Testing is done by using a application called Chaos Monkey, using this application
it randomly powers down a component in your cloud environment. Then you could
wheather your application is still running or if it is brought down entirely. In the web server scenario, when one
web server was down then another web server was launched using the autoscaling
feature, so we finally concluded that AWS delivers High Availability
Performance as promised by them.
In traditional
hosting environments, this probably would have
meant downtime and 404 errors as the websites would have just gone dark. But in
a truly cloud-hosted environment like AWS, there's enough separation between
processing and storage that sites can remain online and continue generating
revenue even with reduced functionality.
Deployment Speed
If you've ever had to provision a
hosted web service, you know this pain very well. Traditional providers take
anywhere from 48-96 hours to provision a server. Then you have to spend a few
hours tweaking it and getting everything tested.
AWS
reduced that deployment time to minutes. If you utilize their Amazon Machine
Images, you can have a machine deployed and ready to get connections in that
short amount of time. This is important when, for example, you are running a
promotion that produce tons of traffic at specific intervals, or just need the
flexibility to handle the request when a new product launches.
The
Cloudformation Templates is a gift from the AWS which can be used to roll out
multiple environments at the click of button and as well can be rolled down at
the click of a button when the demand recedes.
Security
Access to the AWS resources can be
restricted using the IAM(Identity and Access Management), using the roles in
IAM we can define the privileges for user actions which greatly minimize any
malpractices.
AWS
also gives VPC, which can be used to host our services on a private network
which is not accessible from the internet, but can communicate with the
resources in the same network. This restricts the access to the resources such
that any ill intentioned user from the internet.
These
resources hosted in the private network can be accessed using the Amazon VPN or
some open source service like OpenVPN.
Flexibility
The most vital component in AWS is its adaptability. Every
one of the administrations work and discuss together with your application to
naturally judge request and handle it as needs be.
Joined with the phenomenal Programming interface and the
Amazon Machine Pictures you make, you can have a totally altered arrangement
that arrangements a server example in less than 10 minutes, and is prepared to
acknowledge associations once it comes on the web. At that point you can
rapidly close down occasions when they are no more required, making server
administration a relic of days gone by.
Subscribe to:
Posts (Atom)