bootstrap not supported and paypal issue - php

I have create my theme for joomla 2.5 version and used virtue-mart for shopping cart. Every thing is working fine. User purchase from site with the help of paypal payment gateway and payment returns confirmed too. But when they enable the IPN notification URL then Paypal send a mail like
Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:
/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component
/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component
and when i click on this link then it will showing
500 - JHtml: :bootstrap not supported. File not found.
this error. I have just create my template for joomla 2.5.What the exactly issue. Please let me know

It seems you are trying to design a Template for Joomla 3, not for Joomla 2.5.
For your information, the JHTML::bootstrap supported on Joomla 3 only, but you said you are creating template for Joomla 2.5.
In case, you will need to remove JHTML::bootstrap from your code; if you want to use bootstrap, you will need to use it in another way.
Adding Bootstrap to Joomla:
<?php
$document = JFactory::getDocument();
// Adding bootstrap css
$document->addStyleSheet($url_to_css);
// Adding bootstrap javascript
$document->addScript($url_to_javascript);
?>

Related

Getting certain information from magento's mage.php file

I wonder if any of you could help?!
I've recently started a new project which requires an e-commerce system, with that being said I have installed magento and have started to play around with it.... however I am struggling to find any sort of information on using the mage.php file.
What I need really is help on the list below...
I've been looking for the code to display a product from magento on a page that is not situated within magento's platform. Can anyway point me to the code needed for this please
I'd like to incorporate the checkout/login or logout/my account links on every page even when not viewing a page located in magentos system.
I suppose basically I want to use magento to handle the product side of things but want to create my website without having to touch magento except from to call in certain functions.
Any help on this would be appreciated!
You can build the website using an easier content management system such as Wordpress and only use Magento for the Shop section of the website.
There is a plugin for Wordpress that allows you to display products from a Magent website.
https://wordpress.org/plugins/magento/

working with joomla 2.5 users component

I was developing a component in joomla 2.5 which has a total 2 pages, after first page user will be redirected to login page if he is not logged in. The data we got from the first page needs to be saved temporarily and saves to database only after successful login.
so in order to do that we did some code changes inside site_root/components/com_users/views/login/tmpl
and modified default.php to recive our ajax call and send the temp data after succeful login..
now we need to upgrade it to joomla 3.0 ,
what is the right way to deal with these kind of problems?
is there any other way that I can work with joomla login component so that I could fulfill the abvove requirements(by not messing with the core joomla code)??
Plese help with your valuable suggestions....
You should not modify the Joomla core files.
To make this kind of change you should be using plugins and events like onAfterLogin etc.
There is pretty good documentation about this here: http://docs.joomla.org/Plugin
And I can really recommend this book about plugin development if you would like to really understand the power of plugins.
https://www.yireo.com/books/programming-joomla-plugins-book

Dragon Pay Payment gateway extension for AbanteCart

Here is the link of developer section of Dragonpay payment gateway which shows way of integrating to the ecommerce website. But I am not getting the right way that how can I do it
http://www.dragonpay.ph/developers
I want to integrate this gateway in my Abantecart based website. If Any body could help creating extension for it or showing me the way to get it done...that will be of great help.
I want it done in php
Thanks in advance
Just copy the same files of the Cash on Delivery plugin which is already present in AbanteCart. Make Changes to XML and replace Cash On delivery with Dragonpay. Then in place of defaultcod.tpl create your own dragonpay.tpl file. Add in this file the form with your button (Pay with dragonpay button.) Now go to confirm.tpl file present in storefront>view>defaulthtml5>checkouts and add the default dragonpay php code there. Now you are through.
You have just created a dragonpay plugin for AbanteCart.
It is sort of trick , dont rely on it and suggest better answers.
For now this trick is working perfectly fine for me.

wordpress help... integrating existing PHP code to work side-by-side

I know very little of WP aside form it being a CMS geared towards (or started from) blogging, but may people have found the product capable of functioning as their sites CMS.
I was recently asked to write a PHP app to signup, (with email confirm and email notification to admin), login to make and manage orders. - so a user can register and get an email confirmation... once they are approved, they can log in, and place an order. and manage their information. There is also an admin section to manage the users and requests... ALL very straight ahead.
So I write it - and test it and everything is fine... Until the client tells me that it's going to be part of a WP site.
Problem, the client ONLY knows HTML, NOT PHP... I don't know WP.
When I upload a directory to the root - and try to run the app, I get redirect to /$url .. and a page not found displaying in the WP theme.
I have a feeling it has to do with the AUTH module I'm using... but there is a huge BIG PICTURE issue I need to conquer - how to integrate an existing PHP app into a WP site...
Q: how do I reference and use the WP emailing system?
thx - I know it's a broad question. but if someone can point me into a direction...
I have read the post regarding templates in WP and setting up a template with PHP code so it's executed... but it seems 'wrong' to have to create a template for each php page.
What your app is about ? If you got only the Auth module already coded you should only import user and password because WP does this out-of-the-box.
Wordpress can be twist up for your need but you need to do it in the WP way :).
If you want to add some functions to it check out the plugin library on wordpress.org. If you know wordpress and no plugin match your needs then the best way to go is writing your own plugin : https://codex.wordpress.org/Writing_a_Plugin
Or maybe just add your custom functions into functions.php, see https://codex.wordpress.org/Theme_Development#Functions_File
For pages, you basically have to type of it in WP : articles - i.e. blog posts - and the static pages. You can add some custom one check https://codex.wordpress.org/Post_Types
I know this answer is more a bunch of links but if you don't nothing about WP you should first learn how it works before try to hack it.
Hope it helps !

PayPal module in Joomla

I want to download a module or extension or component for Joomla to integrate with PayPal. I have tried a lot but I haven't found any.
Can you help?
The nicepaypal plugin provides a simple way to add an "add to cart / buy" button within your content through a shortcode { } .
details can be found at the trinitronic site - documentation
You can simply add a link in any page with joomla to integrate with paypal.
On line utility: http://www.codetransit.com/generators/paypal_link_generator.php
Example result:
Add to cart!

Categories