Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
Fixed the wizard to work with plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
rogergros committed Jun 15, 2015
1 parent 184f980 commit 7a8bc3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
</h5>
<p>{{ 'elcodi_plugin.store_wizard.step3.description'|trans }}</p>
{% endif %}
<p class="mb-n"><a href="{{ url('admin_payment_list') }}" class="button button-primary">{{ 'elcodi_plugin.store_wizard.step3.action'|trans }}</a></p>
<p class="mb-n"><a href="{{ url('admin_plugin_categorized_list', { 'category': 'payment'}) }}" class="button button-primary">{{ 'elcodi_plugin.store_wizard.step3.action'|trans }}</a></p>
{% if not isMiniWizard %}
<p class="fz-s">{% trans with {'%1': minutesStepThree } %}elcodi_plugin.store_wizard.estimated_time{% endtrans %}</p>
{% endif %}
Expand All @@ -90,9 +90,9 @@
{% endif %}
<p class="mb-n">
{% if carrier %}
<a href="{{ url('admin_shipping_range_new', {carrierId: carrier.id}) }}" class="button button-primary">{{ 'elcodi_plugin.store_wizard.step4.action_range'|trans }}</a>
<a href="{{ url('admin_plugin_categorized_list', { 'category': 'shipping'}) }}" class="button button-primary">{{ 'elcodi_plugin.store_wizard.step4.action_range'|trans }}</a>
{% else %}
<a href="{{ url('admin_carrier_new') }}" class="button button-primary">{{ 'elcodi_plugin.store_wizard.step4.action_carrier'|trans }}</a>
<a href="{{ url('admin_plugin_categorized_list', { 'category': 'shipping'}) }}" class="button button-primary">{{ 'elcodi_plugin.store_wizard.step4.action_carrier'|trans }}</a>
{% endif %}
</p>
{% if not isMiniWizard %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

namespace Elcodi\Plugin\StoreSetupWizardBundle\Services;

use Elcodi\Component\Geo\Entity\Interfaces\AddressInterface;
use Elcodi\Component\Plugin\Entity\Plugin;
use Elcodi\Component\Product\Entity\Interfaces\ProductInterface;
use Elcodi\Component\Product\Repository\ProductRepository;
Expand Down Expand Up @@ -153,6 +154,7 @@ protected function isAddressFulfilled()
->getAddress();

return
$storeAddress instanceof AddressInterface &&
$storeAddress->getCity() != '' &&
$storeAddress->getCity() != null &&
$storeAddress->getAddress() != '' &&
Expand Down

0 comments on commit 7a8bc3d

Please sign in to comment.