Wicked thanks DR.
Thats the easy bit i suppose, now im going to try and restrict what it pulls out.
Cheers
Lee
Wicked thanks DR.
Thats the easy bit i suppose, now im going to try and restrict what it pulls out.
Cheers
Lee
Are we there yet?
Just one more line of code and im done...
Remember, that same function is used for creating new accounts as well.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Oh damn!
Umm, although I want to restrict the shipping address. I dont want to actually restrict the billing address.
So a new customer coming in will not be able to register without being restricted country wise, is that right?
Lee
Are we there yet?
Just one more line of code and im done...
Hi,
I just opened up a new dummy account, and it seems fine, up until I try to change the billing address, and thats where it pull sout the same function.
mmmm![]()
Are we there yet?
Just one more line of code and im done...
Just noticed a possible work around though.
The value of the variable '?main_page' changes from checkout_shipping_address to checkout_payment_address, so could try and make an if statement looking at this.
What you think?
Are we there yet?
Just one more line of code and im done...
Yes, you'll have to customize the function based on something relevant to your needs.
If it's page-specific, you can global the $current_page_base variable and use that, or you could write a different function to produce the desired list, and call that function conditional on your criteria.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Ok the if statement is working, as its not creating an y errors
The if statement doesnt seem to recognise $main_page though, so if I can remember, do I reference the variable like this for example in the page:Code:<?php if ($main_page == checkout_shipping_address) { ?> <label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?></label> <?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?> <?php } ?>
Code:$main_page = ;
Are we there yet?
Just one more line of code and im done...
Sorry to keep posting, but im getting excited now.
I put this at the top of that page, and it worked, so all i got to try and get it to do now, is to read that variable '$main_page', without having to push the value in like below:
LeeCode:$main_page="checkout_shipping_address";
Are we there yet?
Just one more line of code and im done...