Magento guest checkout won't make it to shipping info - php

For some odd reason when people try to use guest checkout it just allows them to enter billing information then when it supposed to go to shipping... it just loops back to the first checkout page... the the process keeps repeating
anyone know where this may be coming from?
the site is a2iwheels.com/checkout/onepage/

Your Magento install is incorrect. According to this report it looks like you're missing the PHP MCrypt extension:
http://www.a2iwheels.com/report/?id=500049770619&s=default
Here's a few tips when debugging Magento problems:
First:
Enable debug/developer mode by uncommenting/adding the following lines to the Magento index.php file:
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
Second:
Setup the Magento exception log:
In the Magento Admin, go to System->Configuration
In the left column, click on Developer (under Advanced)
If it’s not expanded, Click on Log Settings
Select Yes from the “Enabled” drop down
Click on Save Config
Note that you'll need to manually create the log files before Magento begins writing to them.
Third
Install FireBug and use it to catch AJAX errors - the single page checkout is essentially one complicated AJAX page.

Go to /app/design/frontend/base/default/template/checkout/onepage/payment.phtml
and change the following code (line 36)
<fieldset>
<?php echo $this->getChildHtml('methods') ?>
</fieldset>
to this
<fieldset id="checkout-payment-method-load">
<?php echo $this->getChildHtml('methods') ?>
</fieldset>

Related

Wordpress: How to redirect when trying to access a site without permissions

I'm building a community-website with wordpress 4.8 and bbPress Version 2.5.12 installed. I also installed a plugin called Paid Memberships Pro (and an extension that's made for bbPress) that handles the permissions in my forum.
What I would like to add is a redirect to a page on my site which is happening in the moment somebody without the permissions clicks on the member-area. The page that will open will speak about the benefits of joining.
Wordpress itself and the member plugin both only allow me to insert a text that is displayed in case somebody without the permissions try to enter the member-area. This text is small and doesn't contain enough information and I rather prefer to redirect to another page.
I have two problems with this.
First I am not sure if I rather change this in the wordpress settings or the plugin settings. Right now the plugin overrides the settings of wordpress (meaning if I have two different texts in wordpress and the plugin it picks the text from the plugin). So I could change it in the plugin or I change it in wordpress but have to simultaneously tell wordpress to read it's own file instead of the one in the plugins directory (I would say it makes more sense to change it in the plugin but I wanted to make sure).
Second I don't know how to change this code so that it's actually redirecting. I only got as far as breaking the site or nothing at all is happening.
If I go to the file feedback-no-access.php in the bbpress-folder it includes the following code:
<?php
/**
* No Access Feedback Part
*
* #package bbPress
* #subpackage Theme
*/
?>
<div id="forum-private" class="bbp-forum-content">
<h1 class="entry-title"><?php _e( 'Private', 'bbpress' ); ?></h1>
<div class="entry-content">
<div class="bbp-template-notice info">
<p><?php _e( 'You do not have permission to view this forum.',
'bbpress' ); ?></p>
</div>
</div>
</div><!-- #forum-private -->
In the members-plugin I find the following lines:
/**
* Error Message Option
*/
function pmprobb_option_error_message() {
$options = pmprobb_getOptions();
if(isset($options['error_message']))
$error_message = $options['error_message'];
else
$error_message = "";
?>
<input id='pmprobb_option_error_message' name='pmprobb_option_error_message' size='40' type='text' value='<?php echo esc_attr($error_message);?>' />
<small>This message is shown when users attempt to view a forum or thread they don't have access to.</small>
<?php
}
I tried to edit this second block of code so that it's not searching for this message but redirecting to an url I want to point to. But nothing really worked out and I hope that somebody can help me out with that! Thank you
I could solve it by myself without changing the code (which wasn't really possible for me as I don't have enough knowledge).
I found a plugin called redirection and it works perfectly fine. Whenever I click on a forum that I have no access to it redirects me to the page I want it to go to. I don't know if this is a good practice but it works perfectly fine!

Typo3 add a new option or change existing options in backend for Page Frontend Layout drop down not working

i am clearly missing something, but i can't figure out what. I am developing site on Typo3 CMS v7.6.10. I included my extension configuration in TS template.
In \Configuration\TCA\Overrides\pages.php:
<?php
defined('TYPO3_MODE') or die();
// Add pageTSconfig
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile(
'/**/', // my extension
'Configuration/PageTS/pages.ts',
'My special config'
);
In \Configuration\PageTS\pages.ts: (from question here)
TCEFORM.pages {
layout.altLabels.0 = Normal
layout.altLabels.1 = Startpage
layout.altLabels.2 = Landing page
}
After clearing all cache, reinstalling extension nothing had changed in Edit page - Appearance - Frontend Layout drop down. Am i wrong and this configuration is for something else? This is just an example of me using TCEFORM.pages, my attempts to do something with other elements not working too. Do i need to include registered config file? If so, nothing appears in my typoscript template include options.
I am not sure if you did this but
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerPageTSConfigFile()
"only" registers a PageTSConfig file for the selection in the page property. To include it you have to go to the properties of a page in the resources tab and select your file there (see screenshot). It is then active for this page and all subpages.
As an alternative you could use ExtensionManagementUtility::addPageTSConfig() instead. If you pass the <INCLUDE_TYPOSCRIPT string to that function your PageTSConfig will be loaded on every page.

How can find wordpress admin screen option inside the wp-admin folder

I am not using any plugin i want to make bootstrap admin dashboard on word press admin.
how i can change Word press welcome message ?
how i can change word press screen option ?
You can turn the welcome panel off, incidentally resulting in the removal of the welcome message, by doing the following:
Locate the file: /wp-admin/index.php
Just before wp_dashboard() is called, add the following line:
<?php remove_action( 'welcome_panel', 'wp_welcome_panel' ); ?>
This will also remove the corresponding screen option.
As far as changing the text from "Welcome Text" to "Some Other Welcome Message", this is not set in any php file. You will need to have access to the MySql database. You will likely find the welcome text in the wp_options table. A simple SQL query will help you to find the exact location.
References:
Welcome Panel:
https://codex.wordpress.org/Plugin_API/Action_Reference/welcome_panel
Database Diagram:
https://codex.wordpress.org/images/2/2a/WP3.9.4-ERD.png

How to add custom notification in Magento

I have created a magento plugin and I need to add custom notification to magento admin just below the admin menu where the LATEST and CRITICAL error are shown.
I have also tried the steps from this link https://www.openstream.ch/developer-blog/adding-magento-admin-notifications-to-your-extension/. The custom notification are not shown still.
What I need is to display my custom error notification in admin section default just like how other notifications are displayed.
Can anyone tell me the steps to do that?
I was also looking for the same solution. I decided to check opensource repositories and i happen to come across a working version of the "Openstream" turorial you had mentioned.
all you have to do is:
download the files from here
drop the files in your Magento app folder
edit the config.xml file with your feed address/directory
flush Magento cache
Refresh page and you should see your feed.
Here's another extension with similar features: custom notification
i haven't tried this one...
I hope one of these help you!
There is a singleton for that!
... } catch (Exception $e) {
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
}
add the exception or whatever you want. This doesn't need to be in a try catch.
Set Your Message.
Mage::getSingleton("core/session")->addSuccess("Add success message");
Mage::getSingleton("core/session")->addError(" Add error message");
Mage::getSingleton("core/session")->addNotice("Add notification message");
Display Your Message. (Optional If use custom Extension Or not Defined)
<?php echo $this->getChildHtml('global_messages'); ?>
3.Define Block in Layout. (Optional If use custom Extension Or not Defined)
<block type="core/messages" name="global_messages" as="global_messages"/>

Magento bundle dropdown need to display out of stock

In a bundle product page, I need to display if a product in the bundle is out of stock. Currently, the product is simply not appearing in the dropdown. I've looked at the "select.phtml" file and found at the beginning that this line of code get the option value for the dropdown :
<?php $_selections = $_option->getSelections(); ?>
Unfortunately, this doesn't fetch "out of stock" items. So, is there a way to include these items?
Thank you.
Hoping this can help someone. After searching for hours, finally found the line that was causing the problem inside app/code/core/Mage/Bundle/Block/View/Type/Bundle.php
You need to change this line
$this->_options = $optionCollection->appendSelections($selectionCollection, false,
Mage::helper('catalog/product')->getSkipSaleableCheck()
);
to this
$this->_options = $optionCollection->appendSelections($selectionCollection, false,
true
//Mage::helper('catalog/product')->getSkipSaleableCheck()
);
Building on SimCity's answer, rather than extending/overwriting the block, you can do the following. I have added this code to the top of bundle/catalog/product/view/type/bundle/options.phtml
// Get the current value of SkipSaleableCheck
<?php $skipSaleableCheck = Mage::helper('catalog/product')->getSkipSaleableCheck() ?>
// Overwrite this value with a 'true' value
<?php Mage::helper('catalog/product')->setSkipSaleableCheck(true) ?>
You can then reset this value at the bottom of the same file using the following code:
<?php Mage::helper('catalog/product')->setSkipSaleableCheck($skipSaleableCheck) ?>
This method provides the same result without having to overwrite core Magento blocks.
In Magento 1.8.1 you find the file in app/code/core/Mage/Bundle/Block/Catalog/Product/View/Type/Bundle.php
Be aware of making changes in the core will get you site no good for updates. Make a copy of your file to your local directory.

Categories